Explorar o código

* Actually write error message if there is one

Michaël Van Canneyt %!s(int64=3) %!d(string=hai) anos
pai
achega
a0f69557cc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');