Explorar el Código

Trim catch location to file name

Krzysztof Krysiński hace 6 meses
padre
commit
fcb2fc02e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);