imprecise error message

This commit is contained in:
gwen 2013-12-05 09:59:07 +01:00
parent 5fb79fed38
commit deb174f36e
2 changed files with 3 additions and 5 deletions

View File

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

View File

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