Forráskód Böngészése

Trim catch location to file name

Krzysztof Krysiński 6 hónapja
szülő
commit
fcb2fc02e5
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;
         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);