Don't throw exception if no valid file found; instead log it, and return nil.

This commit is contained in:
Simon Brooke 2017-09-07 14:09:53 +01:00
parent a574b527c0
commit 53124ab1a8
2 changed files with 17 additions and 10 deletions

View file

@ -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.")))