Skip to content
Browse files

[test] report debugger's test errors

  • Loading branch information...
1 parent a936768 commit a37340e15115251781a7cb23bc6f78fe303e9ab0 @indutny committed Nov 4, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/simple/test-debugger-repl.js
View
7 test/simple/test-debugger-repl.js
@@ -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) {

0 comments on commit a37340e

Please sign in to comment.
Something went wrong with that request. Please try again.