Browse Source

Improved crash report text

CPKreuz 2 years ago
parent
commit
aa7ace8ea5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/PixiEditor/Models/DataHolders/CrashReport.cs

+ 3 - 2
src/PixiEditor/Models/DataHolders/CrashReport.cs

@@ -16,10 +16,11 @@ internal class CrashReport : IDisposable
     public static CrashReport Generate(Exception exception)
     public static CrashReport Generate(Exception exception)
     {
     {
         StringBuilder builder = new();
         StringBuilder builder = new();
-        DateTime currentTime = DateTime.Now;
+        DateTimeOffset currentTime = DateTimeOffset.Now;
 
 
         builder
         builder
-            .AppendLine($"PixiEditor {VersionHelpers.GetCurrentAssemblyVersionString(moreSpecific: true)} crashed on {currentTime:yyyy.MM.dd} at {currentTime:HH:mm:ss}\n")
+            .AppendLine($"PixiEditor {VersionHelpers.GetCurrentAssemblyVersionString(moreSpecific: true)} x{IntPtr.Size * 8} crashed on {currentTime:yyyy.MM.dd} at {currentTime:HH:mm:ss} {currentTime:zzz}")
+            .AppendLine($"Report: {Guid.NewGuid()}\n")
             .AppendLine("-----System Information----")
             .AppendLine("-----System Information----")
             .AppendLine("General:")
             .AppendLine("General:")
             .AppendLine($"  OS: {Environment.OSVersion.VersionString}")
             .AppendLine($"  OS: {Environment.OSVersion.VersionString}")