diff --git a/source/watcher.d b/source/watcher.d index 79a4319..fff9b0f 100644 --- a/source/watcher.d +++ b/source/watcher.d @@ -21,7 +21,10 @@ void initPages(T, string sortPred)(ref T[string] array, ref T*[] sortedRange, co array[newPage.slug] = newPage; return true; } 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; } }