Skip to content

Commit 0892559

Browse files
slorberm-allanson
authored andcommitted
Add context to query-runner error log (#5214)
1 parent 1afb3a3 commit 0892559

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ module.exports = async (pageOrLayout, component) => {
4040
${result.errors || []}
4141
URL path:
4242
${pageOrLayout.path}
43+
Context:
44+
${JSON.stringify(pageOrLayout.context, null, 4)}
4345
Plugin:
4446
${pageOrLayout.pluginCreatorId || `none`}
4547
Query:

0 commit comments

Comments
 (0)