Commit fe2ebb0
committed
fix(olostep): preserve plain-text error bodies and strengthen malformed JSON test
- Include json.raw fallback in makeRequest error extraction so non-JSON
error responses from the API are surfaced rather than falling back to
the generic HTTP status message
- Strengthen malformed-JSON test to assert res.success is true (not just
res.data.operation) so regressions in the graceful fallback path are caught1 parent 8f41cc7 commit fe2ebb0
2 files changed
Lines changed: 5 additions & 2 deletions
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
| |||
0 commit comments