summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/book.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/book.js b/lib/book.js
index e61d771..ac0fc82 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -843,8 +843,12 @@ Book.init = function(root) {
return fs.exists(absolutePath)
.then(function(exists) {
- book.log.info.ln("create", chapter.path);
- if(exists) return;
+ if(exists) {
+ book.log.info.ln("found", chapter.path);
+ return;
+ } else {
+ book.log.info.ln("create", chapter.path);
+ }
return fs.mkdirp(path.dirname(absolutePath))
.then(function() {