Skip to content

Make the responseError interceptor backward compatible, add a body property#3891

Merged
mcollina merged 1 commit intomainfrom
fix-response-error-body
Nov 27, 2024
Merged

Make the responseError interceptor backward compatible, add a body property#3891
mcollina merged 1 commit intomainfrom
fix-response-error-body

Conversation

@mcollina
Copy link
Member

This makes the responseError interceptor backward compatible.
throwOnError added a err.body property, while the interceptor adds a err.data property. I've renamed data to body.

…operty Signed-off-by: Matteo Collina <hello@matteocollina.com>
Copy link
Member

@mertcanaltin mertcanaltin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit 3c67a3d into main Nov 27, 2024
@mcollina mcollina deleted the fix-response-error-body branch November 27, 2024 13:37
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants