should be throwing exceptions if resource files not found
by default get-resource-path returns nil if the filename doesnt specify a file which isn't in the classpath
This commit is contained in:
parent
0358df49c4
commit
2a448b2839
|
@ -168,4 +168,5 @@
|
||||||
the template."
|
the template."
|
||||||
[^String filename model-map & [options]]
|
[^String filename model-map & [options]]
|
||||||
(if-let [resource-filename (get-resource-path filename)]
|
(if-let [resource-filename (get-resource-path filename)]
|
||||||
(render-file (.getPath resource-filename) model-map options)))
|
(render-file (.getPath resource-filename) model-map options)
|
||||||
|
(throw (new FileNotFoundException (str "Template file \"" filename "\" not found.")))))
|
||||||
|
|
Reference in a new issue