Skip to content

Commit

Permalink
Merge pull request #35 from rayshih/master
Browse files Browse the repository at this point in the history
[bug fix] print err.stack instead of err name
  • Loading branch information
ben-lin committed Sep 18, 2014
2 parents 2731149 + ab53f8f commit 25076d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger/index.js
Expand Up @@ -80,7 +80,7 @@ var config_logger = function ( logger ){
// deal with third argument
if( msg ){
if( UTILS.is( msg ) === 'error' ){
_err = msg; // for 1 and 3
_err = msg.stack; // for 1 and 3
}else{
_msg = msg; // for 2
}
Expand Down

0 comments on commit 25076d6

Please sign in to comment.