Don't throw error on job rejection

master
Charles Francoise 5 years ago
parent dd61663b31
commit bcdcace9ec
  1. 1
      src/createWorker.js

@ -132,7 +132,6 @@ module.exports = (_options = {}) => {
resolves[action]({ jobId, data: d }); resolves[action]({ jobId, data: d });
} else if (status === 'reject') { } else if (status === 'reject') {
rejects[action](data); rejects[action](data);
throw Error(data);
} else if (status === 'progress') { } else if (status === 'progress') {
logger(data); logger(data);
} }

Loading…
Cancel
Save