mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🛠 chore(fetch-sse): preserve legacy body.message and body.name keys for compatibility (#13469)
Restores the original body.message / body.name fields that downstream error handlers rely on. The previous PR renamed them to errorMessage / errorName which broke existing error renderers. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7fd6d67fe3
commit
60a59e89f6
1 changed files with 2 additions and 2 deletions
|
|
@ -326,8 +326,8 @@ export const fetchSSE = async (url: string, options: RequestInit & FetchSSEOptio
|
|||
? { ...error, body: { ...error.body, ...contextBody } }
|
||||
: {
|
||||
body: {
|
||||
errorMessage: error.message,
|
||||
errorName: error.name,
|
||||
message: error.message,
|
||||
name: error.name,
|
||||
...contextBody,
|
||||
},
|
||||
message: error.message,
|
||||
|
|
|
|||
Loading…
Reference in a new issue