ソースを参照

Trim catch location to file name

Krzysztof Krysiński 6 ヶ月 前
コミット
fcb2fc02e5
1 ファイル変更1 行追加1 行削除
  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);