Skip to content

Commit

Permalink
EVG-20661: Fix useless Sentry error (evergreen-ci#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Sep 18, 2023
1 parent c519da0 commit 8081578
Showing 1 changed file with 5 additions and 11 deletions.
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

0 comments on commit 8081578

Please sign in to comment.