[mod] better error message

This commit is contained in:
Laurent Peuch 2020-12-31 19:47:08 +01:00 committed by Alexandre Aubin
parent 10576f7138
commit 9a35d77a08

View file

@ -39,7 +39,11 @@ class Translator(object):
# Attempt to load default translations
if not self._load_translations(default_locale):
logger.error(
"unable to load locale '%s' from '%s'", default_locale, locale_dir
"unable to load locale '%s' from '%s'. Does the file '%s/%s.json' exists?",
default_locale,
locale_dir,
locale_dir,
default_locale,
)
self.default_locale = default_locale