Skip to content

Commit

Permalink
[fix] Add error message to uncaughtException logs. Fixes #204.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Apr 21, 2013
1 parent 2287350 commit e52b184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ Logger.prototype._uncaughtException = function (err) {
: this.exitOnError;

function logAndWait(transport, next) {
transport.logException('uncaughtException', info, next, err);
transport.logException('uncaughtException: ' + err.message, info, next, err);
}

function gracefulExit() {
Expand Down

0 comments on commit e52b184

Please sign in to comment.