mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 10:49:20 +02:00
* Do not show a backtrace when the compiler-executable is not found. Bug #22380.
git-svn-id: trunk@29205 -
This commit is contained in:
parent
9b9ab1c829
commit
840e7ace59
@ -8108,7 +8108,23 @@ var
|
||||
Function Installer(InstallerClass: TInstallerClass): TCustomInstaller;
|
||||
begin
|
||||
If Not Assigned(DefInstaller) then
|
||||
DefInstaller:=InstallerClass.Create(Nil);
|
||||
begin
|
||||
try
|
||||
DefInstaller:=InstallerClass.Create(Nil);
|
||||
except
|
||||
On E : Exception do
|
||||
begin
|
||||
if IsConsole then
|
||||
begin
|
||||
WriteLn(SErrInstaller);
|
||||
WriteLn(E.Message);
|
||||
halt(1);
|
||||
end
|
||||
else
|
||||
raise;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
Result:=DefInstaller;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user