@@ -246,7 +246,10 @@ namespace BepInEx.Bootstrap
Plugins.Remove(pluginGUID);
Logger.LogError($"Error loading [{pluginInfo.Metadata.Name}] : {ex.Message}");
- Logger.LogDebug(ex);
+ if (ex is ReflectionTypeLoadException re)
+ Logger.LogDebug(TypeLoader.TypeLoadExceptionToString(re));
+ else
+ Logger.LogDebug(ex);
}
@@ -72,7 +72,7 @@ namespace BepInEx.Bootstrap
return result;
- private static string TypeLoadExceptionToString(ReflectionTypeLoadException ex)
+ public static string TypeLoadExceptionToString(ReflectionTypeLoadException ex)
{
StringBuilder sb = new StringBuilder();
foreach (Exception exSub in ex.LoaderExceptions)