Skip to content

Commit c941514

Browse files
piehKyleAMathews
authored andcommitted
adjust indices used for extracting graphqlparser errors after adding capturing group in #4618 (#4889)
1 parent 9a81ef4 commit c941514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/internal-plugins/query-runner/graphql-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function extractError(error: Error): { message: string, docName: string } {
6262
while ((matches = docRegex.exec(error.toString())) !== null) {
6363
// This is necessary to avoid infinite loops with zero-width matches
6464
if (matches.index === docRegex.lastIndex) docRegex.lastIndex++
65-
;[, message, docName] = matches
65+
;[,, message, docName] = matches
6666
}
6767

6868
if (!message) {

0 commit comments

Comments
 (0)