Commit 58f06f3
fix: properly display API error response body for 400 errors
Previously, ApiError instances were being re-wrapped, causing the responseBody
to be lost and showing nested error messages like "API Error: Error from OpenAI:
Error: API Error: Status Code 400" instead of the actual error details.
Now ApiError instances are passed through without re-wrapping, ensuring the
responseBody is preserved and displayed correctly in MessageErrTips.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3c04725 commit 58f06f3
File tree
1 file changed
+3
-0
lines changed1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
392 | 395 | | |
393 | 396 | | |
394 | 397 | | |
| |||
0 commit comments