Parcourir la source

User should know which file has caused exception

Piotr Czajkowski il y a 1 an
Parent
commit
3172f30f6c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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}");
             }
         }