diff --git a/src/gql/GQLWrapper.tsx b/src/gql/GQLWrapper.tsx index c89ee7d686..ba3193c943 100644 --- a/src/gql/GQLWrapper.tsx +++ b/src/gql/GQLWrapper.tsx @@ -136,17 +136,11 @@ const authLink = (logout: () => void): ApolloLink => const logErrorsLink = onError(({ graphQLErrors, operation }) => { if (Array.isArray(graphQLErrors)) { graphQLErrors.forEach((gqlErr) => { - reportError( - { - message: "GraphQL Error", - name: gqlErr.message, - }, - { - gqlErr, - operationName: operation.operationName, - variables: operation.variables, - } - ).warning(); + reportError(new Error(gqlErr.message), { + gqlErr, + operationName: operation.operationName, + variables: operation.variables, + }).warning(); }); } // dont track network errors here because they are