Don't throw exception if no valid file found; instead log it, and return nil.
This commit is contained in:
parent
a574b527c0
commit
53124ab1a8
2 changed files with 17 additions and 10 deletions
|
|
@ -203,4 +203,7 @@
|
|||
(is
|
||||
(=
|
||||
"Ceci n'est pas une pipe."
|
||||
(:pipe (get-messages "en-GB;q=0.9, fr-FR" "resources/i18n" "en-GB"))))))
|
||||
(:pipe (get-messages "en-GB;q=0.9, fr-FR" "resources/i18n" "en-GB"))))
|
||||
(is
|
||||
(= nil (get-messages "xx-XX;q=0.5, yy-YY" "resources/i18n" "zz-ZZ"))
|
||||
"If no usable file is found, an exception should not be thrown.")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue