All tests pass again, and this time I'm in the right branch!

Two silly bugs, one in core, one in test.
This commit is contained in:
Simon Brooke 2017-09-08 15:54:59 +01:00
parent 7910d2185f
commit 8f45bee763
2 changed files with 10 additions and 9 deletions

View file

@ -160,12 +160,13 @@
(acceptable-languages accept-language-header))))]
(timbre/debug (str "Found i18n file at '" file-path "'"))
(try
(slurp-resource
(or
file-path
(join java.io.File/separator
[resource-path
(str default-locale ".edn")])))
(read-string
(slurp-resource
(or
file-path
(join java.io.File/separator
[resource-path
(str default-locale ".edn")]))))
(catch Exception any
(timbre/error (str "Failed to load internationalisation because " (.getMessage any)))
nil))))