Skip to content

Commit

Permalink
Merge branch 'release/v1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed Jul 26, 2017
2 parents 19e3285 + 9fc2b25 commit 0564aa9
Show file tree
Hide file tree
Showing 3 changed files with 521 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/winston-telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Telegram.prototype.send = function (messageText) {
self.emit('error', error);
}
if (response && response.statusCode != 200) {
self.emit('error', response.statusCode);
self.emit('error', response.statusCode + (body && body.description && (': ' + body.description) || ''));
}
self.emit('logged');
});
Expand Down
Loading

0 comments on commit 0564aa9

Please sign in to comment.