Skip to content

Commit

Permalink
chore: Additional logging in errorLink [skip pizza]
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jul 9, 2024
1 parent 591eb9a commit e9a0f23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor.planx.uk/src/lib/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e9a0f23

Please sign in to comment.