Преглед изворни кода

* Actually write error message if there is one

Michaël Van Canneyt пре 3 година
родитељ
комит
a0f69557cc
1 измењених фајлова са 2 додато и 1 уклоњено
  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);
 begin
-  { add your help code here }
+  if aError<>'' then
+    Writeln('Error : ',aError);
   writeln('Usage: ', ExeName, ' [options]');
   Writeln('where options is one or more of:');
   Writeln('-h  --help             this help text');