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

Add traceback to errors from failed promises #240

Merged
merged 1 commit into from
Jun 4, 2019
Merged

Add traceback to errors from failed promises #240

merged 1 commit into from
Jun 4, 2019

Conversation

Cito
Copy link
Member

@Cito Cito commented Apr 5, 2019

The stack attribute of GraphQLLocatedErrors was not set for errors that resulted from asynchronous resolvers.

This PR adds a unit test for this problem and a solution that works with Python >= 3 and solves #237.

For Python 2 this problem is not yet solved, and may be never solved, because dealing with stack traces is much more difficult there.

The stack attribute of GraphQLLocatedErrors was not set
for errors that resulted from asynchronous resolvers.

We add a unit test for this problem and a solution
that works with Python >= 3. In Python 2 this problem
is not yet solved, and may be never solved, because
dealing with stack traces is much more difficult there.
Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@jkimbo
Copy link
Member

jkimbo commented Jun 4, 2019

@Cito merge whenever you're ready

@Cito Cito merged commit 8f736b7 into graphql-python:master Jun 4, 2019
@Cito Cito deleted the store-traceback-in-located-error branch June 4, 2019 18:41
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.

3 participants