Module: check_mk
Branch: master
Commit: f24eb41b544921237c1444048c7c7f2b32568cf4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f24eb41b544921…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 13:31:35 2016 +0100
Fixed broken error handling in ajax methods
---
web/htdocs/weblib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/weblib.py b/web/htdocs/weblib.py
index c7e6fe0..7c39edb 100644
--- a/web/htdocs/weblib.py
+++ b/web/htdocs/weblib.py
@@ -35,7 +35,7 @@ def ajax_tree_openclose():
name = html.get_unicode_input("name")
if not tree or not name:
- MKUserError('tree or name parameter missing')
+ raise lib.MKUserError(_('tree or name parameter missing'))
html.set_tree_state(tree, name, html.var("state"))
html.save_tree_states()
@@ -120,7 +120,7 @@ def ajax_set_rowselection():
action = html.var('action', 'set')
if action not in [ 'add', 'del', 'set', 'unset' ]:
- raise MKUserError(_('Invalid action'))
+ raise lib.MKUserError(_('Invalid action'))
rows = html.var('rows', '').split(',')