diff --git a/src/manager.js b/src/manager.js index a7472a6f..32864f63 100644 --- a/src/manager.js +++ b/src/manager.js @@ -211,7 +211,7 @@ class Manager extends EventEmitter { } const onError = error => { - this.emit(events.error, { ...error, queue: name, worker: id }) + this.emit(events.error, { ...error, message: error.message, stack: error.stack, queue: name, worker: id }) } const worker = new Worker({ id, name, options, interval, fetch, onFetch, onError })