summaryrefslogtreecommitdiffstats
path: root/bin/build.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2014-12-16 17:46:01 +0100
committerAaron O'Mullan <aaron.omullan@gmail.com>2014-12-16 17:46:01 +0100
commite7309f71d24def27299e704ad353522842cd7523 (patch)
tree8fb1f0983c13e529ba8ae4ff1168083f0415395d /bin/build.js
parent7fd77323451e2088a77757049fad0098d048ef3c (diff)
parent6c979c941943460b2dcdb84ef0c7f668620bef3f (diff)
downloadgitbook-e7309f71d24def27299e704ad353522842cd7523.zip
gitbook-e7309f71d24def27299e704ad353522842cd7523.tar.gz
gitbook-e7309f71d24def27299e704ad353522842cd7523.tar.bz2
Merge pull request #530 from GitbookIO/fix/cli-error-handling
Robust CLI error handling
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);
});
};
};