summaryrefslogtreecommitdiffstats
path: root/lib/parse
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-29 23:23:54 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-29 23:23:54 +0200
commitfaf18476b159c81959a9b79b14e15e296c2af2ed (patch)
treef356b47602ccdd3742585bba7301401dfc0d0cc4 /lib/parse
parent9acccad23add2670169652bd88e2045cb15ef6f7 (diff)
downloadgitbook-faf18476b159c81959a9b79b14e15e296c2af2ed.zip
gitbook-faf18476b159c81959a9b79b14e15e296c2af2ed.tar.gz
gitbook-faf18476b159c81959a9b79b14e15e296c2af2ed.tar.bz2
Don't fail if page doesn't exist
Diffstat (limited to 'lib/parse')
-rw-r--r--lib/parse/parsePagesList.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse/parsePagesList.js b/lib/parse/parsePagesList.js
index 36fcdec..e356e88 100644
--- a/lib/parse/parsePagesList.js
+++ b/lib/parse/parsePagesList.js
@@ -28,6 +28,8 @@ function parsePagesList(book) {
filepath,
Page.createForFile(file)
);
+ }, function() {
+ // file doesn't exist
});
})
.then(function() {