Permalink
Browse files

error handling'

  • Loading branch information...
1 parent 019ab7f commit b4dadc2f54bc35e86154619ae8219e844c10e5d8 @tmpvar committed Oct 9, 2010
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/runner.js
  2. +1 −1 package.json
View
@@ -128,7 +128,9 @@ exports.run = function(testSuites) {
for (var i = 0; i<errors.length; i++)
{
sys.puts('\nFailure in ' + errors[i].suiteName + ' suite; method: ' + errors[i].method);
- sys.puts(errors[i].error.stack || errors[i].error.message);
+ if (errors[i] && errors[i].error) {
+ sys.puts(errors[i].error.stack || errors[i].error.message);
+ }
}
}
View
@@ -1,5 +1,5 @@
{ "name" : "mjsunit.runner"
-, "version" : "0.1.0"
+, "version" : "0.1.1"
, "description" : "Command line mjsunit runner which provides an easy way to hook into mjsunit and start running tests immediately.."
, "keywords" : [ "testing", "test", "runner", "unit testing", "command line" ]
, "maintainers" :

0 comments on commit b4dadc2

Please sign in to comment.