Skip to content

Commit

Permalink
Expose GraphQL errors (#4618)
Browse files Browse the repository at this point in the history
  • Loading branch information
sielay authored and KyleAMathews committed Mar 19, 2018
1 parent 5292af1 commit 37d4e26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function formatError(message: string, filePath: string, codeFrame: string) {
}

function extractError(error: Error): { message: string, docName: string } {
const docRegex = /Invariant Violation: RelayParser: (.*). Source: document `(.*)` file:/g
const docRegex = /Invariant Violation: (RelayParser|GraphQLParser): (.*). Source: document `(.*)` file:/g
let matches
let message = ``,
docName = ``
Expand Down

0 comments on commit 37d4e26

Please sign in to comment.