Unstable 0.15.22.0

This commit is contained in:
Markus Isberg
2021-12-17 00:19:56 +09:00
parent 7d43cb1e91
commit a864a98d4f
16 changed files with 78 additions and 33 deletions
@@ -2341,10 +2341,11 @@ namespace Barotrauma
}
if (e.InnerException != null)
{
error += "\n\nInner exception: " + e.InnerException.Message + "\n";
if (e.InnerException.StackTrace != null)
var innermost = e.GetInnermost();
error += "\n\nInner exception: " + innermost.Message + "\n";
if (innermost.StackTrace != null)
{
error += e.InnerException.StackTrace.CleanupStackTrace(); ;
error += innermost.StackTrace.CleanupStackTrace(); ;
}
}
}