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

custom errors handler #452

Closed
vankop opened this issue Oct 26, 2017 · 1 comment
Closed

custom errors handler #452

vankop opened this issue Oct 26, 2017 · 1 comment

Comments

@vankop
Copy link

vankop commented Oct 26, 2017

Will it be possible customizing error handling in checkResultAndHandleErrors? Right now it handling errors with concating error messages and throwing locatedError based on orginal graphql module.

https://github.com/apollographql/graphql-tools/blob/master/src/stitching/errors.ts
between 79 and 88 locs.

For example, for stitching locale and remote schemas I want to proxy errors to my React app to localize them later, but in such checkResultAndHandleErrors behavior I can't proxy them as they are.

@stubailo
Copy link
Contributor

Great idea! I think improving error handling in schema stitching is going to be our next priority here, follow along in #890 !

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

No branches or pull requests

2 participants