Commit f528b71f authored by Tristan Cavelier's avatar Tristan Cavelier

dashboard commands don't return jio answer fixed

parent 2d7fccfc
......@@ -327,9 +327,12 @@ function command(method) {
promise = jio[method](param, options);
}
return promise.
then(logAnswer.bind(null, begin), logError.bind(null, begin));
}).then(null, function (e) {
return promise.then(function (answer) {
n = answer;
logAnswer(begin, answer);
return answer;
}, logError.bind(null, begin));
}).then(function () { return n; }, function (e) {
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