Skip to content

Commit

Permalink
fix(reporter): keep users exact formatError result
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Mar 25, 2017
1 parent 28e77e0 commit 562f2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var createErrorFormatter = function (config, emitter, SourceMapConsumer) {

// allow the user to format the error
if (config.formatError) {
msg = config.formatError(msg)
return config.formatError(msg)
}

return msg + '\n'
Expand Down

0 comments on commit 562f2bb

Please sign in to comment.