diff --git a/batch/batch.js b/batch/batch.js index fdd67d0b..aa2e8ff4 100644 --- a/batch/batch.js +++ b/batch/batch.js @@ -187,7 +187,7 @@ Batch.prototype._drainJob = function (user, callback) { self.clearWorkInProgressJob(user, job_id, function (err) { if (err) { - debug(new Error('Could not clear job from work-in-progress list. Reason: ' + errClear.message)); + debug(new Error('Could not clear job from work-in-progress list. Reason: ' + err.message)); } self.jobQueue.enqueueFirst(user, job_id, callback);