diff options
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/book.js b/lib/book.js index acfaece..40c9686 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); }); }) |