Browse Source

Let's keep it sane

Piotr Czajkowski 4 days ago
parent
commit
99bc504d82
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ProcessFiles/ProcessFiles.cs

+ 2 - 2
ProcessFiles/ProcessFiles.cs

@@ -25,7 +25,7 @@ namespace ProcessFiles
             }
             catch (Exception e)
             {
-                errors.Add(e.ToString());
+                errors.Add($"Problem getting attributes of {path}: {e.Message} ({e.Source})");
                 return Result.Failure;
             }
         }
@@ -71,7 +71,7 @@ namespace ProcessFiles
             }
             catch (Exception e)
             {
-                errors.Add($"{path}:\n{e}");
+                errors.Add($"Problem performing action on {path}: {e.Message} ({e.Source})");
             }
         }