mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 10:39:37 +02:00
* Correct exception handling
This commit is contained in:
parent
98404eab49
commit
eb1905a607
@ -423,7 +423,8 @@ end;
|
||||
Procedure TFPDocApplication.DoRun;
|
||||
|
||||
begin
|
||||
ExceptionExitCode:=1;
|
||||
Terminate;
|
||||
ExceptionExitCode:=1;
|
||||
try
|
||||
{$IFDEF Unix}
|
||||
gettext.TranslateResourceStrings('/usr/local/share/locale/%s/LC_MESSAGES/fpdoc.mo');
|
||||
@ -441,7 +442,6 @@ begin
|
||||
else
|
||||
FCreator.CreateDocumentation(FPackage,FDryRun);
|
||||
WriteLn(SDone);
|
||||
Terminate;
|
||||
except
|
||||
ExitCode:=1;
|
||||
Raise;
|
||||
@ -451,7 +451,7 @@ end;
|
||||
constructor TFPDocApplication.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
StopOnException:=false;
|
||||
// StopOnException:=false;
|
||||
FCreator:=TFPDocCreator.Create(Self);
|
||||
FCreator.OnLog:=@OutputLog;
|
||||
OnException:= @ExceptProc;
|
||||
|
Loading…
Reference in New Issue
Block a user