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