From 3fcf1a7723a5a3b7a436974c445dbb2b79fad583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 18 Feb 2016 15:23:15 +0100 Subject: [PATCH] Dont fail if summary doesn't exist --- lib/book.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/book.js b/lib/book.js index acfaecea3..40c96861c 100644 --- a/lib/book.js +++ b/lib/book.js @@ -205,12 +205,12 @@ Book.prototype.parse = function() { .then(that.summary.load) .then(function() { if (!that.summary.exists()) { - throw new error.FileNotFoundError({ filename: 'SUMMARY' }); + that.log.warn.ln('no summary file in this book'); } // Index summary's articles that.summary.walk(function(article) { - if (!article.hasLocation()) return; + if (!article.hasLocation() || article.isExternal()) return; that.addPage(article.path); }); })