mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Readd logging for ReflectionTypeLoaderException
This commit is contained in:
1 parent
a89ae05e40
commit
a12228ce40
2 files changed
+5
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user