Browse Source

* Actually write error message if there is one

Michaël Van Canneyt 3 years ago
parent
commit
a0f69557cc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-web/examples/websocket/client/wsclient.lpr

+ 2 - 1
packages/fcl-web/examples/websocket/client/wsclient.lpr

@@ -122,7 +122,8 @@ end;
 
 
 procedure TWebsocketClientApplication.Usage(const aError : string);
 procedure TWebsocketClientApplication.Usage(const aError : string);
 begin
 begin
-  { add your help code here }
+  if aError<>'' then
+    Writeln('Error : ',aError);
   writeln('Usage: ', ExeName, ' [options]');
   writeln('Usage: ', ExeName, ' [options]');
   Writeln('where options is one or more of:');
   Writeln('where options is one or more of:');
   Writeln('-h  --help             this help text');
   Writeln('-h  --help             this help text');