Shows an error message when the interface DLL fails to load

This commit is contained in:
Cyberboss
2017-10-30 10:26:18 -04:00
parent 8a32ace982
commit 01e5d8370c
+2 -2
View File
@@ -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()));
}
}