Skip to content

Commit

Permalink
qed.ux: improved the handling of {graphql} errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aivazis committed Oct 3, 2022
1 parent 60f22d0 commit e0679c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ux/GraphQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def respond(self, plexus, dispatcher, panel, server, request, **kwds):
# in addition, if something went wrong
if result.errors:
# inform the client
doc["errors"] = [ {"message": error.message} for error in result.errors ]
doc["errors"] = [ {"message": str(error)} for error in result.errors ]

# make a channel
channel = journal.error("qed.ux.graphql")
Expand Down

0 comments on commit e0679c0

Please sign in to comment.