Commit 9222569
committed
fix: apply same nullish detail guard to throwRawApiError (Bugbot)
The nullish detail fix from the previous commit only covered
throwApiError (SDK path). throwRawApiError (raw fetch path via
apiRequestToRegion) had the same issue: { detail: null } would
produce {"detail":null} as visible output in 403 enrichment.
Now checks typeof parsed.detail before using it, and skips the
JSON.stringify fallback for 403 errors.1 parent caa952b commit 9222569
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
420 | 428 | | |
421 | | - | |
| 429 | + | |
422 | 430 | | |
423 | 431 | | |
424 | 432 | | |
| |||
0 commit comments