report debugger's test errors

This commit is contained in:
Fedor Indutny 2011-11-04 03:09:07 +06:00 committed by Ryan Dahl
parent a936768890
commit b904a078d8

View File

@ -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) {