don't throw on job creation failures

there's nothing to catch the error, it should be handled with the error event
This commit is contained in:
2016-06-07 11:16:57 -07:00
parent 34592740c7
commit 85cc4bf7f8

View File

@@ -62,7 +62,6 @@ export default class Job extends events.EventEmitter {
.catch((err) => { .catch((err) => {
this.debug('Job creation failed', err); this.debug('Job creation failed', err);
this.emit('error', err); this.emit('error', err);
throw err;
}); });
} }