Module: check_mk
Branch: master
Commit: 3104b99e21adc643873198fbce72f61fd6462544
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3104b99e21adc6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 20 11:45:57 2015 +0100
Added nicer error message when trying to edit a visual which does not exist
---
web/htdocs/visuals.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index 685a711..caebd49 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -556,6 +556,8 @@ def page_edit_visual(what, all_visuals, custom_field_handler = None,
if not visual:
visual = all_visuals.get(('', visualname)) # load builtin visual
mode = 'clone'
+ if not visual:
+ raise MKGeneralException(_('The requested %s does not
exist.') % visual_types[what]['title'])
single_infos = visual['single_infos']