Skip to content

Commit

Permalink
If we want to squash more graphql specific errors we should catch them
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdz committed Jan 6, 2021
1 parent 0291b50 commit 1cfbb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/query/error-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const errorParser = ({
{
regex: /[\s\S]*/gm,
cb: (match): IMatch => {
if (error instanceof Error && !(error instanceof GraphQLError)) {
if (error instanceof Error) {
return {
id: `85901`,
error, // show stack trace
Expand Down

0 comments on commit 1cfbb05

Please sign in to comment.