Don't create panic by telling about false overwrite

This commit is contained in:
Wilhelm
2015-05-27 14:13:02 +03:00
parent a7d3064340
commit bb579dd581
+6 -2
View File
@@ -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() {