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:
parent
7910d2185f
commit
8f45bee763
2 changed files with 10 additions and 9 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue