Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Default message for error encountered while establishing error is mod…
Browse files Browse the repository at this point in the history
…ified
  • Loading branch information
jaty committed Feb 16, 2018
1 parent 5d2b7cf commit 46f3188
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ FiveBeansWorker.prototype.start = function(tubes)

this.client.on('error', function(err)
{
err.metadata = {
...err.metadata,
'fivebeans-error': ' beanstalkd connection error'
};
self.emitWarning({message: 'beanstalkd connection error', error: err});
self.emit('error', err);
});
Expand Down

0 comments on commit 46f3188

Please sign in to comment.