Commit fd387ce6 authored by Tristan Cavelier's avatar Tristan Cavelier

dashboard error logged twice fix

parent 2ec16e69
......@@ -330,7 +330,9 @@ function command(method) {
return promise.
then(logAnswer.bind(null, begin), logError.bind(null, begin));
}).then(null, function (e) {
error(e.toString());
if (e instanceof Error) {
error(e.toString());
}
});
}
......
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