Commit d956b11f authored by Tristan Cavelier's avatar Tristan Cavelier

specific jio error sent for instanceof Error objects rejection

parent d4b5ab83
......@@ -51,6 +51,10 @@ function restCommandRejecter(param, args) {
if (typeof a === 'object' && !Array.isArray(a)) {
dictUpdate(weak, a);
if (a instanceof Error) {
weak.reason = a.message;
weak.error = a.name;
}
}
dictUpdate(weak, strong);
......
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