Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-20661: Fix useless Sentry error #2041

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions src/gql/GQLWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down