Skip to content

Commit

Permalink
adjust indices used for extracting graphqlparser errors after adding …
Browse files Browse the repository at this point in the history
…capturing group in #4618 (#4889)
  • Loading branch information
pieh authored and KyleAMathews committed Apr 8, 2018
1 parent 9a81ef4 commit c941514
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function extractError(error: Error): { message: string, docName: string } {
while ((matches = docRegex.exec(error.toString())) !== null) {
// This is necessary to avoid infinite loops with zero-width matches
if (matches.index === docRegex.lastIndex) docRegex.lastIndex++
;[, message, docName] = matches
;[,, message, docName] = matches
}

if (!message) {
Expand Down

0 comments on commit c941514

Please sign in to comment.