Browse Source

* Do not show a backtrace when the compiler-executable is not found. Bug #22380.

git-svn-id: trunk@29205 -
joost 10 years ago
parent
commit
840e7ace59
1 changed files with 17 additions and 1 deletions
  1. 17 1
      packages/fpmkunit/src/fpmkunit.pp

+ 17 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -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;