Dont fail if summary doesn't exist

This commit is contained in:
Samy Pessé
2016-02-18 15:23:15 +01:00
parent 1a3ee78459
commit 3fcf1a7723
+2 -2
View File
@@ -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);
});
})