diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-28 12:22:26 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-28 12:22:26 +0100 |
commit | ee13b4bf75b05bf4814deffdfc9609ce7fa8922a (patch) | |
tree | 1667cf9fe1da1c160a098560ff003ed5d49a8405 /lib/utils/page.js | |
parent | 924006d508f79e8d0f6db27f74bc1e59672b7be1 (diff) | |
download | gitbook-ee13b4bf75b05bf4814deffdfc9609ce7fa8922a.zip gitbook-ee13b4bf75b05bf4814deffdfc9609ce7fa8922a.tar.gz gitbook-ee13b4bf75b05bf4814deffdfc9609ce7fa8922a.tar.bz2 |
Improve error message when imagemagick is not installed
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r-- | lib/utils/page.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index e526afb..fa333f2 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -155,8 +155,9 @@ function convertImages(images, options) { return imgUtils.convert(imgin, imgout) .then(function() { options.book.log.debug.ok(); - }, function() { + }, function(err) { options.book.log.debug.fail(); + throw err; }); }); }, Q()); |