summaryrefslogtreecommitdiffstats
path: root/bin/build.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-12-16 16:05:50 +0100
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-12-16 16:05:50 +0100
commit6c979c941943460b2dcdb84ef0c7f668620bef3f (patch)
tree8fb1f0983c13e529ba8ae4ff1168083f0415395d /bin/build.js
parent7fd77323451e2088a77757049fad0098d048ef3c (diff)
downloadgitbook-6c979c941943460b2dcdb84ef0c7f668620bef3f.zip
gitbook-6c979c941943460b2dcdb84ef0c7f668620bef3f.tar.gz
gitbook-6c979c941943460b2dcdb84ef0c7f668620bef3f.tar.bz2
Robust CLI error handling
Fixes #528, fixes #524, fixes #518
Diffstat (limited to 'bin/build.js')
-rw-r--r--bin/build.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/build.js b/bin/build.js
index 4f8b74e..28d7641 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -44,18 +44,6 @@ var makeBuildFunc = function(converter) {
.then(function(output) {
console.log("Successfully built!");
return output;
- })
- .fail(function(err) {
- // Log error
- utils.logError(err);
-
- // Exit process with failure code
- process.exit(-1);
- })
- .then(function() {
- // Prevent badly behaving plugins
- // from making the process hang
- process.exit(0);
});
};
};