diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-12-13 12:58:34 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-12-13 12:58:34 +0000 |
commit | c66390e2e79492d50d384c4cf737c7d2cfd0a453 (patch) | |
tree | 797568a53d3ed2279a8a28944fed59c1001e5e57 /lib | |
parent | 6fd17bfdddff8e7cc1f033fe25afc70acdb4e22f (diff) | |
download | gitano-c66390e2e79492d50d384c4cf737c7d2cfd0a453.tar.gz |
Explain error codes when a command fails
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitano/util.lua | 2 |
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 |