make error handling more user friendly

This commit is contained in:
jem 2019-01-25 17:53:27 +01:00
parent e5b8b4910d
commit 8390036b49

View file

@ -19,7 +19,11 @@ smeagol.include and not inteded for direct usage."
(cond exists? (cond exists?
(do (do
(timbre/info (format "Including page '%s' from file '%s'" uri file-path)) (timbre/info (format "Including page '%s' from file '%s'" uri file-path))
(slurp file-path))))) (slurp file-path))
:else
(do
(timbre/info (format "Page '%s' not found at '%s'" uri file-path))
(str "include not found at " file-path)))))
(s/defn (s/defn
new-resolver new-resolver