diff --git a/ARKBreedingStats/Program.cs b/ARKBreedingStats/Program.cs index ca4da931..cadd0b76 100644 --- a/ARKBreedingStats/Program.cs +++ b/ARKBreedingStats/Program.cs @@ -62,9 +62,8 @@ private static void UnhandledExceptionHandler(object sender, UnhandledExceptionE { if (System.Diagnostics.Debugger.IsAttached) throw e; string message = e.Message - + "\n\nException type: " + e.GetType() - + "\n\nException in " + e.Source - + "\n\nMethod throwing the error: " + e.TargetSite.DeclaringType.FullName + "." + e.TargetSite.Name + + "\n\n" + e.GetType() + " in " + e.Source + " (" + Utils.ApplicationNameVersion + ")" + + "\n\nMethod throwing the error: " + e.TargetSite.DeclaringType?.FullName + "." + e.TargetSite.Name + "\n\nStackTrace:\n" + e.StackTrace + (e.InnerException != null ? "\n\nInner Exception:\n" + e.InnerException.Message : string.Empty) ;