Add FileLoadException handling to TypeLoadExceptionToString

This commit is contained in:
ManlyMarco committed 2018-11-26 13:52:53 +01:00
1 parent 5179507da0
commit 9f153338da
1 file changed
+8
+8
View File
@@ -61,6 +61,14 @@ namespace BepInEx.Bootstrap
sb.AppendLine(exFileNotFound.FusionLog);
}
}
else if (exSub is FileLoadException exLoad)
{
if (!string.IsNullOrEmpty(exLoad.FusionLog))
{
sb.AppendLine("Fusion Log:");
sb.AppendLine(exLoad.FusionLog);
}
}
sb.AppendLine();
}
return sb.ToString();