Skip to content
Snippets Groups Projects
Commit 62852439 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't log errno value and description as part of ERROR log msg, when 0

If errno is 0, it's definitely no proividing anything of value here. Of
course, sometimes errno might be non-zero and still be unrelated to the error
message. <shrug>

For Nelgin:
!ERROR 0 (Success) in exec.cpp line 644 (js_execfile) compiling "something.js" access=0
<nelgin> I don't quite get why a successful execution is logged as an error
parent a2794120
No related branches found
No related tags found
No related merge requests found
Pipeline #5958 passed
......@@ -265,7 +265,7 @@ void sbbs_t::errormsg(int line, const char* function, const char *src, const cha
return;
errormsg_inside=true;
if(strcmp(action, ERR_CHK) != 0)
if(errno != 0 && strcmp(action, ERR_CHK) != 0)
safe_snprintf(errno_info, sizeof(errno_info), "%d (%s) "
#ifdef _WIN32
"(WinError %u) "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment