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

refactor: pass util props to handleReturnedServerError and handleServerErrorLog #184

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

TheEdoRan
Copy link
Owner

Proposed changes

This PR adds util props as the second argument of handleReturnedServerError and handleServerErrorLog optional init functions. Now you have access to clientInput, bindArgsClientInputs, ctx, metadata and also returnedError (just for handleServerErrorLog), which is the server error customized by handleReturnedServerError function.

Related issue(s) or discussion(s)

re #177

Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-safe-action-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:11am
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:11am

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

Successfully merging this pull request may close these issues.

1 participant