dbms: addition to prev. revision [#CONV-8224].

This commit is contained in:
Alexey Milovidov 2013-10-20 07:02:23 +00:00
parent 67f4542bd0
commit 9f1c0a69bf
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ protected:
}
if (bytes_read < 0)
throw Exception("Cannot read from socket", ErrorCodes::CANNOT_READ_FROM_SOCKET);
throw Exception("Cannot read from socket (" + socket.address().toString() + ")", ErrorCodes::CANNOT_READ_FROM_SOCKET);
if (bytes_read)
working_buffer.resize(bytes_read);

View File

@ -45,7 +45,7 @@ protected:
}
if (res < 0)
throw Exception("Cannot write to socket", ErrorCodes::CANNOT_WRITE_TO_SOCKET);
throw Exception("Cannot write to socket (" + socket.address().toString() + ")", ErrorCodes::CANNOT_WRITE_TO_SOCKET);
bytes_written += res;
}
}