summaryrefslogtreecommitdiffstats
path: root/lib/generators/ebook.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-25 15:27:40 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-25 15:27:40 +0100
commit0f0ec4cf3d4741290a29cebacb7b544bd18cde15 (patch)
tree155a811030d45597b8156e8b5f28a83e5b467e52 /lib/generators/ebook.js
parent06ab84abe33a131c089f42bf0bd9ede8deb6e671 (diff)
downloadgitbook-0f0ec4cf3d4741290a29cebacb7b544bd18cde15.zip
gitbook-0f0ec4cf3d4741290a29cebacb7b544bd18cde15.tar.gz
gitbook-0f0ec4cf3d4741290a29cebacb7b544bd18cde15.tar.bz2
Improve logger
Diffstat (limited to 'lib/generators/ebook.js')
-rw-r--r--lib/generators/ebook.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 1bad718..58e3f3f 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -98,9 +98,11 @@ Generator.prototype.finish = function() {
stringUtils.optionsToShellArgs(_options)
].join(" ");
- that.book.log.info.ln("start conversion to", that.ebookFormat);
+ that.book.log.info("start conversion to", that.ebookFormat, "....");
exec(command, function (error, stdout, stderr) {
if (error) {
+ that.book.log.info.fail();
+
if (error.code == 127) {
error.message = "Need to install ebook-convert from Calibre";
} else {
@@ -108,6 +110,8 @@ Generator.prototype.finish = function() {
}
return d.reject(error);
}
+
+ that.book.log.info.ok();
d.resolve();
});