Skip to content

Commit

Permalink
If we get an error on the queue make sure we exit with an error #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Nov 6, 2017
1 parent ace34af commit 3108187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/queueHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ class QueueHandler {
// FIXME handle rejections (i.e. failures while processing messages) properly
queue.processingEnded(obj => {
const message = obj.item;
// if we get a error message on the queue make sure we register that
if (message.type === 'error' || message.type.endsWith('.error')) {
this.errors.push(message.data);
}
const err = obj.err;
if (err) {
let rejectionMessage =
Expand Down

0 comments on commit 3108187

Please sign in to comment.