Browse Source

Added more null checking in some error handling code in the legacy plugin loader

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
84346cbfa1
2 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Loader/PluginManager.cs
  2. BIN
      Refs/UnityEngine.CoreModule.dll

+ 1
- 1
IPA.Loader/Loader/PluginManager.cs View File

@ -241,7 +241,7 @@ namespace IPA.Loader
catch (ReflectionTypeLoadException e) catch (ReflectionTypeLoadException e)
{ {
Logger.loader.Error($"Could not load the following types from {Path.GetFileName(file)}:"); Logger.loader.Error($"Could not load the following types from {Path.GetFileName(file)}:");
Logger.loader.Error($" {string.Join("\n ", e.LoaderExceptions.Select(e1 => e1?.Message))}");
Logger.loader.Error($" {string.Join("\n ", e.LoaderExceptions?.Select(e1 => e1?.Message) ?? new string[0])}");
} }
catch (Exception e) catch (Exception e)
{ {


BIN
Refs/UnityEngine.CoreModule.dll View File


Loading…
Cancel
Save