Commit ca76cfe4 authored by Tristan Cavelier's avatar Tristan Cavelier

jio.js updated

parent fd33a807
...@@ -2171,6 +2171,10 @@ function restCommandRejecter(param, args) { ...@@ -2171,6 +2171,10 @@ function restCommandRejecter(param, args) {
if (typeof a === 'object' && !Array.isArray(a)) { if (typeof a === 'object' && !Array.isArray(a)) {
dictUpdate(weak, a); dictUpdate(weak, a);
if (a instanceof Error) {
weak.reason = a.message;
weak.error = a.name;
}
} }
dictUpdate(weak, strong); dictUpdate(weak, strong);
...@@ -2798,7 +2802,7 @@ function enableJobRecovery(jio, shared, options) { ...@@ -2798,7 +2802,7 @@ function enableJobRecovery(jio, shared, options) {
var job; var job;
shared.job_queue.load(); shared.job_queue.load();
job = shared.job_queue.get(id); job = shared.job_queue.get(id);
if (job.modified === modified) { if (job && job.modified === modified) {
// job not modified, no one takes care of it // job not modified, no one takes care of it
recoverJob(job); recoverJob(job);
} }
......
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