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:
Gered 2014-03-23 10:07:00 -04:00
parent 0358df49c4
commit 2a448b2839

View file

@ -168,4 +168,5 @@
the template."
[^String filename model-map & [options]]
(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.")))))