Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
report debugger's test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny authored and ry committed Nov 3, 2011
1 parent a936768 commit b904a07
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 b904a07

Please sign in to comment.