Skip to content

Commit

Permalink
[test] report debugger's test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Nov 3, 2011
1 parent a936768 commit a37340e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/simple/test-debugger-repl.js
Expand Up @@ -149,7 +149,12 @@ function quit() {
}

setTimeout(function() {
throw new Error('timeout!');
var err = 'Timeout';
if (expected.length > 0 && expected[0].lines) {
err = err + '. Expected: ' + expected[0].lines.shift();
}

throw new Error(err);
}, 5000);

process.once('uncaughtException', function(e) {
Expand Down

0 comments on commit a37340e

Please sign in to comment.