From b934c279db8860e4a0177f63a4e6c169862281b3 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 14 Apr 2019 21:05:00 -0500 Subject: [PATCH] Added better information for IPA type load exceptions Bumped version --- IPA.Loader/Config/SelfConfig.cs | 2 +- IPA.Loader/Loader/PluginManager.cs | 8 +++++++- IPA.Loader/Loader/manifest.json | 2 +- IPA/Program.cs | 2 +- appveyor.yml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/IPA.Loader/Config/SelfConfig.cs b/IPA.Loader/Config/SelfConfig.cs index 3a8aa4d2..76affea1 100644 --- a/IPA.Loader/Config/SelfConfig.cs +++ b/IPA.Loader/Config/SelfConfig.cs @@ -33,7 +33,7 @@ namespace IPA.Config } internal const string IPAName = "Beat Saber IPA"; - internal const string IPAVersion = "3.12.12"; + internal const string IPAVersion = "3.12.13"; public bool Regenerate = true; diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 6698f99c..4ee5297e 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -264,9 +264,15 @@ namespace IPA.Loader } } + catch (ReflectionTypeLoadException e) + { + Logger.loader.Error($"Could not load the following types from {Path.GetFileName(file)}:"); + Logger.loader.Error($" {string.Join(", ", e.Types.Select(t => t.FullName))}"); + } catch (Exception e) { - Logger.loader.Error($"Could not load {Path.GetFileName(file)}! {e}"); + Logger.loader.Error($"Could not load {Path.GetFileName(file)}!"); + Logger.loader.Error(e); } return new Tuple, IEnumerable>(null, ipaPlugins); diff --git a/IPA.Loader/Loader/manifest.json b/IPA.Loader/Loader/manifest.json index 4986f683..d7619fce 100644 --- a/IPA.Loader/Loader/manifest.json +++ b/IPA.Loader/Loader/manifest.json @@ -5,7 +5,7 @@ "gameVersion": "0.13.2", "id": "BSIPA", "name": "Beat Saber IPA", - "version": "3.12.12", + "version": "3.12.13", "features": [ "define-feature(print, IPA.Loader.Features.PrintFeature)", "define-feature(debug, IPA.Loader.Features.DebugFeature)", diff --git a/IPA/Program.cs b/IPA/Program.cs index 0078292b..dfcbae63 100644 --- a/IPA/Program.cs +++ b/IPA/Program.cs @@ -23,7 +23,7 @@ namespace IPA Unknown } - public const string FileVersion = "3.12.12"; + public const string FileVersion = "3.12.13"; public static Version Version => Assembly.GetEntryAssembly().GetName().Version; diff --git a/appveyor.yml b/appveyor.yml index 5b0a52de..0de0e935 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ version: 'BSIPA-{branch}-{build}' environment: - bsipa_version: '3.12.12' + bsipa_version: '3.12.13' pull_requests: do_not_increment_build_number: true install: