mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 02:39:11 +02:00
* pas2jni: Fixed exit code.
git-svn-id: trunk@33435 -
This commit is contained in:
parent
39f1244041
commit
288f7285a3
@ -76,7 +76,7 @@ begin
|
||||
Result:=False;
|
||||
if ParamCount = 0 then begin
|
||||
ShowUsage;
|
||||
ErrorCode:=1;
|
||||
ExitCode:=1;
|
||||
exit;
|
||||
end;
|
||||
for i:=1 to Paramcount do begin
|
||||
@ -158,7 +158,7 @@ begin
|
||||
else
|
||||
begin
|
||||
writeln('Illegal parameter: -', s);
|
||||
ErrorCode:=1;
|
||||
ExitCode:=1;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
@ -187,7 +187,7 @@ begin
|
||||
end;
|
||||
except
|
||||
writeln(Exception(ExceptObject).Message);
|
||||
ErrorCode:=2;
|
||||
ExitCode:=2;
|
||||
end;
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user