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 6d44e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ FiveBeansWorker.prototype.start = function(tubes)

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

0 comments on commit 6d44e62

Please sign in to comment.