test_mod => test_mode2

This commit is contained in:
2019-03-28 07:53:29 +01:00
parent f47cc02d3e
commit 9da87804c2
2 changed files with 10 additions and 3 deletions

View File

@ -244,7 +244,7 @@ class TiramisuOptionValue(_Value):
self._display_warnings(self.path, value, self.schema['type'], self.schema['name'])
return value
if self.index is not None:
raise APIError(_('index must be only with a follower option, not for "{}"').format(self.path))
raise APIError(_('index must only be set with a follower option, not for "{}"').format(self.path))
value = self.config.get_value(self.path)
self._display_warnings(self.path, value, self.schema['type'], self.schema['name'])
return value