Readd logging for ReflectionTypeLoaderException

This commit is contained in:
ghorsington committed 2019-06-16 18:48:15 +03:00
1 parent a89ae05e40
commit a12228ce40
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -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);
}
}
+1 -1
View File
@@ -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)