Commit 72689146 authored by Peter Xin's avatar Peter Xin

Temp fix

parent 2464a0ee
...@@ -24,7 +24,15 @@ let getUserConfig = function(user, callback) { ...@@ -24,7 +24,15 @@ let getUserConfig = function(user, callback) {
} }
else else
{ {
callback(JSON.parse(body)); try {
let value = JSON.parse(body);
callback(value);
}
catch(e)
{
console.log("failed to call back user " + res.username);
errorUser(res);
}
} }
}); });
/* /*
......
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