imprecise error message
This commit is contained in:
parent
5fb79fed38
commit
deb174f36e
2 changed files with 3 additions and 5 deletions
|
@ -451,9 +451,7 @@ class Option(BaseOption):
|
|||
do_validation(value, force_index)
|
||||
else:
|
||||
if not isinstance(value, list):
|
||||
raise ValueError(_("invalid value {0} for option {1} ")
|
||||
_("which must be a list").format(value,
|
||||
self._name))
|
||||
raise ValueError(_("invalid value {0} for option {1} which must be a list").format(value, self._name))
|
||||
for index, val in enumerate(value):
|
||||
do_validation(val, index)
|
||||
|
||||
|
|
|
@ -116,8 +116,8 @@ msgid "invalid value for option {0}: {1}"
|
|||
msgstr "valeur invalide pour l'option {0} : {1}"
|
||||
|
||||
#: tiramisu/option.py:454
|
||||
msgid "which must be a list"
|
||||
msgstr "lequel doit être une liste"
|
||||
msgid ""invalid value {0} for option {1} which must be a list"
|
||||
msgstr "valeur invalide pour l'option {0} : {1} laquelle doit être une liste"
|
||||
|
||||
#: tiramisu/option.py:514
|
||||
msgid "consistency should be set with an option"
|
||||
|
|
Loading…
Reference in a new issue