From deb174f36e87babb7e29ca6095e8fb7a843562de Mon Sep 17 00:00:00 2001 From: gwen Date: Thu, 5 Dec 2013 09:59:07 +0100 Subject: [PATCH] imprecise error message --- tiramisu/option.py | 4 +--- translations/fr/tiramisu.po | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tiramisu/option.py b/tiramisu/option.py index df7c985..f85c3ad 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -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) diff --git a/translations/fr/tiramisu.po b/translations/fr/tiramisu.po index ec9e66d..bff777c 100644 --- a/translations/fr/tiramisu.po +++ b/translations/fr/tiramisu.po @@ -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"