mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-02 02:40:04 +02:00
minor
This commit is contained in:
parent
5944957977
commit
3cfeb74529
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user