summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi_tools/system.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi_tools/system.py b/cgi_tools/system.py
index 24ff2e1..d5f6d28 100644
--- a/cgi_tools/system.py
+++ b/cgi_tools/system.py
@@ -111,8 +111,8 @@ def check_run_cmd_list(cmd):
(ok,exitcode,out,err) = run_cmd_list(cmd)
if not ok:
- http_server_error("command '%s' returned error (exit code %d)" % \
- (cmd[0],exitcode))
+ http_server_error("command '%s' returned error (exit code %d): %s" % \
+ (cmd[0],exitcode, err))
return (out,err)