From e2d4a9369c21d019e41f5703c55a1176091e6ba6 Mon Sep 17 00:00:00 2001 From: Manuel Penschuck Date: Mon, 16 Feb 2015 15:58:42 +0100 Subject: [PATCH] cts.pl return error message, when command not understood --- web/htdocs/cts/cts.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/htdocs/cts/cts.pl b/web/htdocs/cts/cts.pl index 9f35dff..16b7a99 100755 --- a/web/htdocs/cts/cts.pl +++ b/web/htdocs/cts/cts.pl @@ -170,5 +170,8 @@ if ($query eq "init") { printHeader 'ok', 'text/plain', $attachment; print(commandDump($cts, $mode)); +} else { + printHeader 'error'; + print "Unknown command: $query\n"; } 1; -- 2.43.0