Module: check_mk
Branch: master
Commit: 53294eed7a07d64aaafd35c7dcc0f203c4f69d37
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=53294eed7a07d6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 16:42:55 2016 +0100
Fixed another invalid MKUserError call
---
web/htdocs/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index fa1f1b6..b599eb0 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1487,7 +1487,7 @@ class CascadingDropdown(ValueSpec):
raise MKUserError(varprefix + "_sel", _("Value
must a tuple with two elements."))
vs.validate_datatype(value[1], varprefix + "_%d" % nr)
return
- raise MKUserError(_("Value %r is not allowed here.") % value)
+ raise MKUserError(varprefix, _("Value %r is not allowed here.") %
value)
def validate_value(self, value, varprefix):
choices = self.choices()