From 01e5d8370c70116a67772efb0336a9686b4b3ac8 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 30 Oct 2017 10:26:18 -0400 Subject: [PATCH] Shows an error message when the interface DLL fails to load --- TGInstallerWrapper/Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TGInstallerWrapper/Main.cs b/TGInstallerWrapper/Main.cs index 79d8ac3081..b497c0b6cc 100644 --- a/TGInstallerWrapper/Main.cs +++ b/TGInstallerWrapper/Main.cs @@ -80,11 +80,11 @@ namespace TGInstallerWrapper Version = ITGSService.GetMethod(InterfaceServiceInterfaceVersion); PrepareForUpdate = ITGSService.GetMethod(InterfaceServiceInterfacePrepareForUpdate); } - catch + catch (Exception e) { InterfaceAssembly = null; VersionLabel.Text = "Error: (Could not load interface dll)"; - return; + MessageBox.Show(String.Format("An error occurred while loading {0} (This is an easily preventable bug, please report it)! Error: {1}", InterfaceDLL, e.ToString())); } }