Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow arbitrary additional props to be passed to createError #768

Open
1 task
hymair opened this issue Jun 8, 2024 · 1 comment
Open
1 task

Allow arbitrary additional props to be passed to createError #768

hymair opened this issue Jun 8, 2024 · 1 comment

Comments

@hymair
Copy link

hymair commented Jun 8, 2024

Describe the feature

I want to send an additional prop in my error responses. For example code: "invitation_not_found" and I don't want it to be under data, but in the root error object.

Additional information

  • Would you be willing to help implement this feature?
@hymair hymair changed the title Don't nest custom error data under data Allow arbitrary additional props to be passed to createError Jun 12, 2024
@RobertHaba
Copy link

I have similar expectations about putting additional information in the root. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants