Skip to content

Commit

Permalink
fix stack trace label not dropping 'Error:'
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Dec 5, 2021
1 parent dac96d3 commit 68d551a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/detect-node-mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function createProxyHandler({
reporter.warn(
`Node mutation detected\n\n${
codeFrame ? `${codeFrame}\n\n` : ``
}${error.stack.replace(/^$Error:?\s*/, ``)}`
}${error.stack.replace(/^Error:?\s*/, ``)}`
)
}
return true
Expand Down

0 comments on commit 68d551a

Please sign in to comment.