Browse Source

User should know which file has caused exception

Piotr Czajkowski 1 năm trước cách đây
mục cha
commit
3172f30f6c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ProcessFiles/ProcessFiles.cs

+ 1 - 1
ProcessFiles/ProcessFiles.cs

@@ -85,7 +85,7 @@ namespace ProcessFiles
             }
             catch (Exception e)
             {
-                _errors.Add(e.ToString());
+                _errors.Add($"{path}:\n{e}");
             }
         }