Cs source folder filter

This commit is contained in:
Oiltanker
2022-04-28 17:08:02 +03:00
parent cb50c69fc6
commit e5215fb976
3 changed files with 45 additions and 10 deletions
@@ -138,9 +138,12 @@ namespace Barotrauma
}
else
{
if (exceptionType == ExceptionType.Lua) PrintError(ex);
else if (exceptionType == ExceptionType.CSharp) PrintCsError(ex);
else PrintBothError(ex);
string msg = ex.StackTrace != null
? ex.ToString()
: $"{ex}\n{Environment.StackTrace}";
if (exceptionType == ExceptionType.Lua) PrintError(msg);
else if (exceptionType == ExceptionType.CSharp) PrintCsError(msg);
else PrintBothError(msg);
}
}