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

err.originalError in formatError does not include Error code, type and data information #124

Open
valeeum opened this issue Jul 12, 2024 · 0 comments

Comments

@valeeum
Copy link

valeeum commented Jul 12, 2024

When passing formatError to serverOptions, seems like graphql is stripping out error code, type and data which I can confirm is present in the catch block of createActionResolver in service.js. Does anyone know why this might be the case?

Here is the code I'm using in serverOptions to inspect error:

        formatError(err) {
          console.warn({
            originalError: err.originalError, // <--- does not include code, type or data
          });
          return err;
        },
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

1 participant