Skip to content
Snippets Groups Projects
Commit ebbb84b4 authored by rswindell's avatar rswindell
Browse files

Verbose-mode will now dump the JSON of the BBS entry both on vert.synchro.net

and local, for comparison purposes. Hopefully help to get to the bottom of
the error that Altere is seeing.
parent eba53d13
No related branches found
No related tags found
No related merge requests found
...@@ -202,8 +202,15 @@ var tests = { ...@@ -202,8 +202,15 @@ var tests = {
var bbs = list[lib.system_index(list, system.name)]; var bbs = list[lib.system_index(list, system.name)];
bbs.entry = undefined; bbs.entry = undefined;
finger_obj.entry = undefined; finger_obj.entry = undefined;
if(JSON.stringify(finger_obj) != JSON.stringify(bbs)) if(JSON.stringify(finger_obj) != JSON.stringify(bbs)) {
if(options.verbose) {
print(finger_host + ":");
print(JSON.stringify(finger_obj, null, 4));
print("local:");
print(JSON.stringify(bbs, null, 4));
}
return format("'%s' BBS entry on %s is different than local", system.name, finger_host); return format("'%s' BBS entry on %s is different than local", system.name, finger_host);
}
}, },
check_syncdata: function(options) check_syncdata: function(options)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment