8000 fix: `response.data.errors` is sometimes empty (#577) · octokit/plugin-retry.js@6b8011e · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b8011e

Browse files
committed
fix: response.data.errors is sometimes empty (#577)
Fix #536
1 parent 93261d5 commit 6b8011e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wrap-request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async function requestWithGraphqlErrorHandling(
3535
if (
3636
response.data &&
3737
response.data.errors &&
38+
response.data.errors.length > 0 &&
3839
/Something went wrong while executing your query/.test(
3940
response.data.errors[0].message,
4041
)

0 commit comments

Comments
 (0)
0