From 85cc4bf7f83ff6c1628503318457bf2cd7665baa Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 7 Jun 2016 11:16:57 -0700 Subject: [PATCH] don't throw on job creation failures there's nothing to catch the error, it should be handled with the error event --- src/job.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/job.js b/src/job.js index d331b42..37e1224 100644 --- a/src/job.js +++ b/src/job.js @@ -62,7 +62,6 @@ export default class Job extends events.EventEmitter { .catch((err) => { this.debug('Job creation failed', err); this.emit('error', err); - throw err; }); }