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

Don't log an error when JS resolve_ip() fails

e.g. don't log the error "term !ERROR resolve_ip example.com failed with error -2", just let the script deal with the failure and log an error if it wishes.
parent 4162d827
No related branches found
No related tags found
No related merge requests found
......@@ -4055,7 +4055,6 @@ js_resolve_ip(JSContext *cx, uintN argc, jsval *arglist)
hints.ai_socktype = SOCK_STREAM;
rc=JS_SUSPENDREQUEST(cx);
if((result=getaddrinfo(p, NULL, &hints, &res))!=0) {
lprintf(LOG_ERR, "!ERROR resolve_ip %s failed with error %d",p, result);
JS_RESUMEREQUEST(cx, rc);
free(p);
return JS_TRUE;
......
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