浏览代码

* 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');