From e9a0f23bd64d8c0568d7846330d74ff75820f20c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= <DafyddLlyr@gmail.com> Date: Tue, 9 Jul 2024 10:43:55 +0100 Subject: [PATCH] chore: Additional logging in `errorLink` [skip pizza] --- editor.planx.uk/src/lib/graphql.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor.planx.uk/src/lib/graphql.ts b/editor.planx.uk/src/lib/graphql.ts index 0e29fcaadd..2b35952141 100644 --- a/editor.planx.uk/src/lib/graphql.ts +++ b/editor.planx.uk/src/lib/graphql.ts @@ -103,6 +103,9 @@ const errorLink = onError(({ graphQLErrors, operation }) => { if (graphQLErrors) { handleHasuraGraphQLErrors(graphQLErrors, operation); } else { + console.error( + `[Error]: Operation name: ${operation.operationName}. Details: ${operation}`, + ); toast.error("Network error, attempting to reconnect…", { toastId, autoClose: false,