Skip to content

Commit

Permalink
improved error message when callback returns uncaught error
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 27, 2010
1 parent 93aeaa3 commit 92aafed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vows/reporters/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ this.vowText = function (event) {
buffer.push(' » ' + event.exception);
} else if (event.status === 'errored') {
if (event.exception.type === 'promise') {
buffer.push(' * ' + stylize("An 'error' event was caught: " +
buffer.push(' » ' + stylize("An unexpected error was caught: " +
stylize(event.exception.error, 'bold'), 'red'));
} else {
buffer.push(' ' + stylize(event.exception, 'red'));
Expand Down

0 comments on commit 92aafed

Please sign in to comment.