From 858c2f7354ff655f162704631b111714400805d1 Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Thu, 10 Oct 2013 16:22:34 +0200 Subject: [PATCH] jio.js updated --- jio.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jio.js b/jio.js index d4e60ec..d4d346d 100644 --- a/jio.js +++ b/jio.js @@ -2171,6 +2171,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); @@ -2798,7 +2802,7 @@ function enableJobRecovery(jio, shared, options) { var job; shared.job_queue.load(); job = shared.job_queue.get(id); - if (job.modified === modified) { + if (job && job.modified === modified) { // job not modified, no one takes care of it recoverJob(job); } -- 2.30.9