Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 171fe43c authored by Rob Swindell's avatar Rob Swindell 💬

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 779a621a
...@@ -219,7 +219,7 @@ var tests = { ...@@ -219,7 +219,7 @@ var tests = {
try { try {
finger_obj = JSON.parse(finger_result.join('')); finger_obj = JSON.parse(finger_result.join(''));
} catch(e) { } catch(e) {
return 'finger ' + finger_query + '@' + finger_host + ' result: ' + e; return finger_result.join('');
} }
var bbs = list[lib.system_index(list, system.name)]; var bbs = list[lib.system_index(list, system.name)];
bbs.entry = undefined; bbs.entry = undefined;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment