Skip to content

Commit 22d83ce

Browse files
committed
Reporting dll loading erros to user
1 parent f98501c commit 22d83ce

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Modules/DelphiFMX/uMain.pas

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function PyInit_DelphiFMX: PPyObject; cdecl;
88

99
implementation
1010

11-
uses System.IOUtils, System.SysUtils, System.JSON, FMX.Dialogs,
12-
WrapDelphi, WrapDelphiFMX;
11+
uses System.IOUtils, System.SysUtils, System.JSON, WrapDelphi, WrapDelphiFMX;
1312

1413
var
1514
gEngine : TPythonEngine;
@@ -129,11 +128,7 @@ function PyInit_DelphiFMX: PPyObject;
129128
gEngine.LoadDll;
130129
except
131130
on E: Exception do begin
132-
var LErrorMsg := 'An error occurred: ' + E.Message;
133-
if IsConsole then
134-
WriteLn(LErrorMsg)
135-
else
136-
ShowMessage(LErrorMsg);
131+
WriteLn('An error occurred: ' + E.Message);
137132
Dump(E.Message);
138133
end;
139134
end;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy