summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 11:36:06 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 11:36:06 +0000
commit78c759d118c25cdf285345cb692f9feef05f5546 (patch)
treef5db5ace3679df8fa61bc43c1d2d260bc479b023 /bin
parent45583e2403e2a1242899b5371ded0962b6ce013a (diff)
downloadgitano-78c759d118c25cdf285345cb692f9feef05f5546.tar.gz
Fix up empty command message to work like ssh does
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitano-command.cgi.in6
1 files changed, 3 insertions, 3 deletions
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