Module: check_mk
Branch: master
Commit: 191150de688a98301e401c9922a0b9987fff2081
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=191150de688a98…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 1 15:12:58 2011 +0200
Wato: Better error handling on exceptions in wato code
---
web/htdocs/wato.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f0e6026..dd6503f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -158,7 +158,8 @@ def page_handler():
modefunc("content")
except Exception, e:
- html.show_error(e)
+ import traceback
+ html.show_error(traceback.format_exc().replace('\n', '<br
/>'))
html.write("</div>\n")
html.footer()