From: Manuel Penschuck Date: Mon, 16 Feb 2015 14:58:42 +0000 (+0100) Subject: cts.pl return error message, when command not understood X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e2d4a9369c21d019e41f5703c55a1176091e6ba6;p=daqtools.git cts.pl return error message, when command not understood --- 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;