cwSocket.cpp : Added error msg.

This commit is contained in:
kevin 2022-08-31 14:00:01 -04:00
parent f75510f624
commit 4aa8621b70

View File

@ -85,7 +85,10 @@ namespace cw
{
p = _handleToPtr(h);
if((s = _idToSock(p,userId,showErrorFl)) == nullptr )
return cwLogError(kInvalidArgRC,"The socket associated with id '%i' could not be found.",userId);
{
if( showErrorFl )
return cwLogError(kInvalidArgRC,"The socket associated with id '%i' could not be found.",userId);
}
return kOkRC;
}