in progress removing the error target stuffs

This commit is contained in:
2025-10-15 00:03:56 +09:00
parent 702696da89
commit e99a4e700b
12 changed files with 159 additions and 191 deletions

View File

@ -9,7 +9,7 @@ var
begin
(* System.ParamCount() returns only the number of argumetns except System.ParamStr(0). It is the upper bound to System.ParamStr(). *)
if System.ParamCount() <> 1 then begin
writeln (System.Stderr, SysUtils.Format('Usage: %s <filename>', [SysUtils.ExtractFileName(System.ParamStr(0))]));
writeln(System.Stderr, SysUtils.Format('Usage: %s <filename>', [SysUtils.ExtractFileName(System.ParamStr(0))]));
System.Halt(-1);
end;
@ -34,10 +34,10 @@ begin
x.Execute(); // check if exception...
except
on e: Exception do
writeln ('exception: ', e.Message);
writeln('exception: ', e.Message);
else
writeln ('unknonw exception');
writeln('unknonw exception');
end;
if x <> nil then x.Destroy();
end.
end.