mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Provide extra info when failing to initialize plugins with TypeLoadException
This commit is contained in:
parent
cb4580c0d9
commit
a27973800c
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue