Commit 357f069
Log original error before wrapping as APIError
When DoWithRetry fails, log the underlying error at ERROR level before
replacing it with the generic "Internal API unreachable" APIError. This
preserves the sanitised user-facing message while keeping the root cause
visible in logs for debugging.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9668e2f commit 357f069
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
0 commit comments