-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagit] add full serialized error to graphql errors (#12228)
Use the extensions field on the error contents to include the full `SerializableErrorInfo` object for the original exception. This allows us to see the stack trace / cause when an exception occurs in a resolver. ### How I Tested These Changes added test, screenshot: <img width="841" alt="Screen Shot 2023-02-09 at 3 17 59 PM" src="https://user-images.githubusercontent.com/202219/217941619-9b9a9431-1994-4bf7-b92d-7e8cd5a7708a.png">
- Loading branch information
1 parent
7962972
commit 17ea06c
Showing
7 changed files
with
89 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
python_modules/dagster-graphql/dagster_graphql/schema/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import graphene | ||
|
||
|
||
class GrapheneTestFields(graphene.ObjectType): | ||
class Meta: | ||
name = "TestFields" | ||
|
||
alwaysException = graphene.String() | ||
|
||
def resolve_alwaysException(self, _): | ||
raise Exception("as advertised") |