From 7efecea3d6bac9dbe85c9ec7960cf26ad36e9ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sat, 17 May 2014 20:35:13 +0200 Subject: [PATCH] Exit process with -1 when error occurs --- bin/build.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/build.js b/bin/build.js index 257715d71..5894d0055 100644 --- a/bin/build.js +++ b/bin/build.js @@ -33,8 +33,11 @@ var makeBuildFunc = function(converter) { .then(function(output) { console.log("Successfuly built !"); return output; - }, utils.logError); - }; + }, utils.logError) + .fail(function() { + process.exit(-1); + }); + }; }; module.exports = {