mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
make error handling more user friendly
This commit is contained in:
parent
e5b8b4910d
commit
8390036b49
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue