Commit 852a9e0
grokspice
fix(search): report an unreadable error body instead of dropping it
A non-2xx /v1/search response had its body read with unwrap_or_default(), so a
failure to read the body collapsed to an empty string and SearchFailed rendered
as though the runtime had explained nothing — losing the transport error.
Keep the status code, which is already known, and put the read failure in the
body instead. The six pre-existing call sites in QueryHttpClient share the
pattern and are tracked separately in #87.1 parent 86176b9 commit 852a9e0
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
796 | 803 | | |
797 | 804 | | |
798 | | - | |
| 805 | + | |
799 | 806 | | |
800 | 807 | | |
801 | 808 | | |
| |||
0 commit comments