Commit da834b8
committed
Fix withRetry to actually catch async rejections
`return fn()` inside an async try block returns the promise directly
without awaiting — rejected promises bypass the catch block entirely.
Changed to `return await fn()` so async failures are caught and retried.
Without this fix, withRetry never retried async callbacks (including
downloadWithProgress and Netlify file uploads).1 parent 03630e6 commit da834b8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments