Module: check_mk
Branch: master
Commit: 8fca7ec74f563526857422a84562e3a141d112bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8fca7ec74f5635…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 9 10:13:17 2015 +0200
Improved error output of WATO git commands
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index e2f11ea..82ada36 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -380,8 +380,8 @@ def git_command(args):
output = p.read()
status = p.close()
if status != None:
- raise MKGeneralException(_("Error executing GIT command %s: %s") %
- (command.decode('utf-8'), output))
+ raise MKGeneralException(_("Error executing GIT command
<tt>%s</tt>:<br><br>%s") %
+ (command.decode('utf-8'), output.replace("\n",
"<br>\n")))
def shell_quote(s):
return "'" + s.replace("'",
"'\"'\"'") + "'"