From 3cfeb74529509f8c23a32066fdc2b5821a22dc57 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 6 Jun 2019 10:36:40 +0200 Subject: [PATCH] minor --- slsSupportLib/src/DataSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsSupportLib/src/DataSocket.cpp b/slsSupportLib/src/DataSocket.cpp index a38fe602d..8668ec76e 100755 --- a/slsSupportLib/src/DataSocket.cpp +++ b/slsSupportLib/src/DataSocket.cpp @@ -59,7 +59,7 @@ int DataSocket::receiveData(void *buffer, size_t size) { return bytes_read; } else { std::ostringstream ss; - ss << "TCP socket error read " << bytes_read << " bytes instead of " + ss << "TCP socket read " << bytes_read << " bytes instead of " << bytes_expected << " bytes"; throw sls::SocketError(ss.str()); } @@ -76,7 +76,7 @@ int DataSocket::sendData(const void *buffer, size_t size) { } if (bytes_sent != data_size){ std::ostringstream ss; - ss << "TCP socket error sent " << bytes_sent << " bytes instead of " + ss << "TCP socket sent " << bytes_sent << " bytes instead of " << data_size << " bytes"; throw sls::SocketError(ss.str()); }