Browse Source

Trim catch location to file name

Krzysztof Krysiński 6 months ago
parent
commit
fcb2fc02e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Helpers/CrashHelper.cs

+ 1 - 1
src/PixiEditor/Helpers/CrashHelper.cs

@@ -165,7 +165,7 @@ internal partial class CrashHelper
         string reportText = report.ReportText;
         string reportText = report.ReportText;
         if (catchLocation is not null)
         if (catchLocation is not null)
         {
         {
-            reportText = $"The report was generated from an exception caught in {catchLocation}.\r\n{reportText}";
+            reportText = $"The report was generated from an exception caught in {Path.GetFileName(catchLocation)}.\r\n{reportText}";
         }
         }
 
 
         byte[] bytes = Encoding.UTF8.GetBytes(reportText);
         byte[] bytes = Encoding.UTF8.GetBytes(reportText);