Permalink
Browse files

catch errors for test

  • Loading branch information...
Floby committed Aug 26, 2011
1 parent 2e91d3f commit 533548906d3dccddbdc2385c12e30c3c0ce9b275
Showing with 4 additions and 0 deletions.
  1. +4 −0 test.js
View
@@ -8,3 +8,7 @@ t.on('data', function(data) {
});
t.data({require:require});
t.run();
+t.on('error', function(err) {
+ console.log(err.message);
+ console.log(err.stack);
+});

0 comments on commit 5335489

Please sign in to comment.