Explorar o código

User should know which file has caused exception

Piotr Czajkowski hai 1 ano
pai
achega
3172f30f6c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}");
             }
         }