2 ms·
If you wanted to e.g. log something on failures, you’d need to do something like this: chain .then(job) .catch((err) => { console.error
by cluckindan 1y ago
If you wanted to e.g. log something on failures, you’d need to do something like this:
chain
.then(job)
.catch((err) => {
console.error(err);
return job();
});
Otherwise failures would need to be logged by the job itself before rejecting the promise.