Skip to content

Commit

Permalink
fix: response.data.errors is sometimes empty (#577)
Browse files Browse the repository at this point in the history
Fix #536
  • Loading branch information
wolfy1339 authored Sep 18, 2024
1 parent 8c69e19 commit 375b037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wrap-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async function requestWithGraphqlErrorHandling(
if (
response.data &&
response.data.errors &&
response.data.errors.length > 0 &&
/Something went wrong while executing your query/.test(
response.data.errors[0].message,
)
Expand Down

0 comments on commit 375b037

Please sign in to comment.