]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
cts.pl return error message, when command not understood
authorManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Mon, 16 Feb 2015 14:58:42 +0000 (15:58 +0100)
committerManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Mon, 16 Feb 2015 14:58:42 +0000 (15:58 +0100)
web/htdocs/cts/cts.pl

index 9f35dff97c6506bb56b4f7861f542595462c5a43..16b7a9905394a94faf6c4189e7ea1d4f8ef84f41 100755 (executable)
@@ -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;