From c66390e2e79492d50d384c4cf737c7d2cfd0a453 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 13 Dec 2016 12:58:34 +0000 Subject: Explain error codes when a command fails --- lib/gitano/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1