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 = {