-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: pass context to formatErrors #2140
feat: pass context to formatErrors #2140
Conversation
@JonathanCA97: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
@abernix , when is this PR going to be watched? |
any blockers here? I'm very keen to see this merged @martijnwalraven @abernix |
@martijnwalraven any blocking issues? I want to know why this isn't reviewed/accepted yet. |
It would be very useful to have the context available in the format function. |
I see the value you might gain by having this additional That doesn't mean that there shouldn't be a way to accomplish what you're (likely) trying to do though and I'd encourage you to explore the new I think we should explore the possibilities of that new life-cycle hook. Keep in mind that it's possible to attach properties to an error object in If this still doesn't work out, please open a new issue so we can come to a consensus on the best approach before moving into a PR. Ultimately, we'd like to have this be addressable within the request pipeline API. |
If you want to show different types of errors based on your context, for instance personalized errors based on the user (language) that has sent the request, ...
TODO: