Skip to content

Commit

Permalink
Coerce message to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Feb 17, 2016
1 parent 3e2194b commit bfa8125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ exports.list = function(failures) {
var err = test.err;
var message;
if (err.message && typeof err.message.toString === 'function') {
message = err.message;
message = err.message + '';
} else if (typeof err.inspect === 'function') {
message = err.inspect() + '';
} else {
Expand Down

0 comments on commit bfa8125

Please sign in to comment.