From 4aa8621b70de6642248ff4a3791c3641d035ccae Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 31 Aug 2022 14:00:01 -0400 Subject: [PATCH] cwSocket.cpp : Added error msg. --- cwSocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cwSocket.cpp b/cwSocket.cpp index 1e3f58f..b50ee47 100644 --- a/cwSocket.cpp +++ b/cwSocket.cpp @@ -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; }