mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Provide extra info when failing to initialize plugins with TypeLoadException
This commit is contained in:
@@ -216,6 +216,13 @@ public static class PluginsCore {
|
||||
using CompositionHost container = configuration.CreateContainer();
|
||||
|
||||
activePlugins = container.GetExports<IPlugin>().ToHashSet();
|
||||
} catch (TypeLoadException e) {
|
||||
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(e.TypeName));
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
|
||||
await Task.Delay(SharedInfo.InformationDelay).ConfigureAwait(false);
|
||||
|
||||
return false;
|
||||
} catch (Exception e) {
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user