Commit 4df323a
authored
refactor: warn on output directory cleanup failure (#518)
- Adds `maxCleanupRetryAttempts` (5) and replaces the magic '5' in the cleanup loop with this constant.
- Adds a log a warning if `dir.RemoveAll()` fails during `Run` instead of ignoring the error.
These changes ensures that output directory removal failures are visible for debugging and the retry count is centralized.
Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>1 parent 9d43b6c commit 4df323a
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
100 | | - | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments