cwSocket.cpp : Generate an error message if _idToSock() fails in _getMgrAndSocket().
This commit is contained in:
parent
09da65113f
commit
b552a96508
@ -85,7 +85,8 @@ namespace cw
|
|||||||
{
|
{
|
||||||
p = _handleToPtr(h);
|
p = _handleToPtr(h);
|
||||||
if((s = _idToSock(p,userId,showErrorFl)) == nullptr )
|
if((s = _idToSock(p,userId,showErrorFl)) == nullptr )
|
||||||
return kInvalidArgRC;
|
return cwLogError(kInvalidArgRC,"The socket associated with id '%i' could not be found.",userId);
|
||||||
|
|
||||||
return kOkRC;
|
return kOkRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user