mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] better error message
This commit is contained in:
parent
10576f7138
commit
9a35d77a08
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue