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

If finger doesn't return a valid JSON object, log the returned string(s)

... instead of the JSON parse exception as reported via IRC:
<matjam> !finger ?bbs:Stupendous BBS@vert.synchro.net result: SyntaxError: JSON.parse
parent faac4653
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ var tests = {
try {
finger_obj = JSON.parse(finger_result.join(''));
} catch(e) {
return 'finger ' + finger_query + '@' + finger_host + ' result: ' + e;
return finger_result.join('');
}
var bbs = list[lib.system_index(list, system.name)];
bbs.entry = undefined;
......
File deleted
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