Module: check_mk
Branch: master
Commit: f153a2408d1904ccde20150c7e7d6dda579e6343
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f153a2408d1904…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jun 14 12:10:36 2017 +0200
Improved error handling in case of unexpected exceptions during "site login"
Change-Id: I1db6376e58c27df1f0746fca1edced60ba110c57
---
web/htdocs/wato.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 07f11e6..4b53b34 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9458,10 +9458,11 @@ class ModeDistributedMonitoring(ModeSites):
error = "%s" % e
except Exception, e:
+ log_exception()
if config.debug:
raise
html.add_user_error("_name", error)
- error = str(e)
+ error = (_("Internal error: %s\n%s") % (e,
traceback.format_exc())).replace("\n", "\n<br>")
wato_html_head(_("Login into site %s") %
html.render_tt(site["alias"]))
if error: