From 79f8d253d07a0b4bfd58bf3460ea27c3899b8b9e Mon Sep 17 00:00:00 2001 From: Michael Petrov Date: Mon, 30 Jan 2012 14:18:40 -0800 Subject: [PATCH] proper exit code on error --- lib/testosterone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/testosterone.js b/lib/testosterone.js index d5232e6..9bebee4 100644 --- a/lib/testosterone.js +++ b/lib/testosterone.js @@ -37,7 +37,7 @@ module.exports = function (config) { require('assert')[fn].apply(this, [].slice.call(arguments, 0)); } catch (exc) { console.error(('\nāœ— => ' + exc.stack + '\n').red); - process.exit(); + process.exit(1); } _passed_asserts += 1; _util.print('āœ“ '.green);