From e0679c04e4691595855d9a2183b8ec134820cb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20A=C3=AFv=C3=A1zis?= Date: Sun, 2 Oct 2022 06:27:28 -0700 Subject: [PATCH] qed.ux: improved the handling of {graphql} errors --- pkg/ux/GraphQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ux/GraphQL.py b/pkg/ux/GraphQL.py index 81525ee2..2e903dbf 100644 --- a/pkg/ux/GraphQL.py +++ b/pkg/ux/GraphQL.py @@ -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")