From 78c759d118c25cdf285345cb692f9feef05f5546 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 3 Dec 2016 11:36:06 +0000 Subject: Fix up empty command message to work like ssh does --- bin/gitano-command.cgi.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/gitano-command.cgi.in b/bin/gitano-command.cgi.in index 59995b2..7e6efd6 100755 --- a/bin/gitano-command.cgi.in +++ b/bin/gitano-command.cgi.in @@ -38,7 +38,7 @@ if os.getenv("QUERY_STRING") then if not e then stdout:write("Status: 400 Bad request\r\n\r\n") - stdout:write("Malformed command line, format: ?cmd=arg0 arg1 ... argn\n") + stdout:write("FATAL: " .. gitano.i18n.expand("ERROR_NO_COMMAND") .. "\n") return end @@ -46,7 +46,7 @@ if os.getenv("QUERY_STRING") then if cmdline == '' then stdout:write("Status: 400 Bad request\r\n\r\n") - stdout:write("Malformed command line, format: ?cmd=arg0 arg1 ... argn\n") + stdout:write("FATAL: " .. gitano.i18n.expand("ERROR_NO_COMMAND") .. "\n") return end @@ -76,5 +76,5 @@ if os.getenv("QUERY_STRING") then gitano.log.syslog.close() else stdout:write("Status: 400 Bad request\r\n\r\n") - stdout:write("Malformed command line, format: ?cmd=arg0 arg1 ... argn\n") + stdout:write("FATAL: " .. gitano.i18n.expand("ERROR_NO_COMMAND") .. "\n") end -- cgit v1.2.1