lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit fd33a807 authored by Tristan Cavelier's avatar Tristan Cavelier

specific jio error sent for instanceof Error objects rejection

parent ce419f85
......@@ -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