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 committed Nov 29, 2024
1 parent 93261d5 commit 6b8011e
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 6b8011e

Please sign in to comment.