Fixed wrong exception message [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-11-26 20:11:04 +03:00
parent 7e9e5c383a
commit 2115c31dda

View File

@ -51,7 +51,7 @@ void WriteBufferFromPocoSocket::nextImpl()
}
catch (const Poco::IOException & e)
{
throw NetException(e.displayText() + ", while reading from socket (" + peer_address.toString() + ")", ErrorCodes::NETWORK_ERROR);
throw NetException(e.displayText() + ", while writing to socket (" + peer_address.toString() + ")", ErrorCodes::NETWORK_ERROR);
}
if (res < 0)