Browse Source

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

pull/11/head
Anairkoen Schno 5 years ago
parent
commit
d6dfb524bb
3 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Loader/PluginManager.cs
  2. BIN
      Refs/Assembly-CSharp.dll
  3. BIN
      Refs/UnityEngine.CoreModule.dll

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

@ -241,7 +241,7 @@ namespace IPA.Loader
catch (ReflectionTypeLoadException e)
{
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)
{


BIN
Refs/Assembly-CSharp.dll View File


BIN
Refs/UnityEngine.CoreModule.dll View File


Loading…
Cancel
Save