Handling and logging exceptions thrown by ItemComponent constructors, added stack traces to a couple of error messages

This commit is contained in:
Joonas Rikkonen
2018-08-06 14:53:07 +03:00
parent 7c93730fc3
commit e60ebc1930
3 changed files with 17 additions and 6 deletions
@@ -138,7 +138,7 @@ namespace Barotrauma
GameAnalyticsManager.AddErrorEventOnce(
"Entity.RemoveAll:Exception" + e.ToString(),
GameAnalyticsSDK.Net.EGAErrorSeverity.Error,
"Error while removing entity \"" + e.ToString() + "\"" + exception.Message);
"Error while removing entity \"" + e.ToString() + " (" + exception.Message + ")\n" + exception.StackTrace);
}
}
StringBuilder errorMsg = new StringBuilder();