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:
@@ -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;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user