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

More detail to JSON.parse() error in Socket.prototype.recvJSON

This is likely the cause of the vauge logged error that I and other
sysops see from time to time:
srvc 0000 JSON SyntaxError: JSON.parse

... so log the function name and the contents of the string that's
failing to parse.
parent aabef582
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -45,7 +45,7 @@ Socket.prototype.recvJSON = function() {
}
}
catch(e) {
log(LOG_ERROR,e);
log(LOG_ERROR,'recvJSON(): ' + e + format(" '%s'", packet));
}
}
return packet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment