summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-13 12:58:34 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-13 12:58:34 +0000
commitc66390e2e79492d50d384c4cf737c7d2cfd0a453 (patch)
tree797568a53d3ed2279a8a28944fed59c1001e5e57 /lib
parent6fd17bfdddff8e7cc1f033fe25afc70acdb4e22f (diff)
downloadgitano-c66390e2e79492d50d384c4cf737c7d2cfd0a453.tar.gz
Explain error codes when a command fails
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitano/util.lua b/lib/gitano/util.lua
index 2581eb0..8bcbfd1 100644
--- a/lib/gitano/util.lua
+++ b/lib/gitano/util.lua
@@ -30,7 +30,7 @@ local function run_command(cmd, cmdline, parsed_cmdline, user,
if how ~= "exit" or why ~= 0 then
log.critical(i18n.expand("ERROR_RUNNING_COMMAND",
- {cmd=parsed_cmdline[1], reason=how}))
+ {cmd=parsed_cmdline[1], reason=how, code=why}))
log.critical(i18n.expand("UNABLE_TO_CONTINUE"))
return why
else