Fix crash on starup when syntax error in YAML
This commit is contained in:
parent
46b5cfdbb5
commit
7e01e575fc
|
@ -21,7 +21,10 @@ void initPages(T, string sortPred)(ref T[string] array, ref T*[] sortedRange, co
|
||||||
array[newPage.slug] = newPage;
|
array[newPage.slug] = newPage;
|
||||||
return true;
|
return true;
|
||||||
} catch (page.ArticleParseException e) {
|
} catch (page.ArticleParseException e) {
|
||||||
logf("Could not parse %s", path);
|
logf("Could not parse %s: %s", path, e);
|
||||||
|
return false;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logf("Other exception while parsing %s: %s", path, e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue