diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-05 20:21:51 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-05 20:22:27 -0700 |
commit | 9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7 (patch) | |
tree | 36ca31f21239875db7c883bde2702effc1fec1e2 /bin/utils.js | |
parent | 465188cae68d86017ce293e018eddf85f4de83ba (diff) | |
download | gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.zip gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.tar.gz gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.tar.bz2 |
Add command gitbook pdf to generate PDF
Diffstat (limited to 'bin/utils.js')
-rw-r--r-- | bin/utils.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/utils.js b/bin/utils.js index 77d70c6..f736720 100644 --- a/bin/utils.js +++ b/bin/utils.js @@ -82,6 +82,11 @@ function serveDir(dir, port) { return d.promise; } +function logError(err) { + console.log(err.message || err); + return Q.reject(err); +}; + // Exports module.exports = { @@ -89,4 +94,5 @@ module.exports = { githubID: githubID, titleCase: titleCase, serveDir: serveDir, + logError: logError }; |