We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2032147 commit 3ee60d5Copy full SHA for 3ee60d5
packages/gatsby/src/commands/build.js
@@ -61,7 +61,11 @@ module.exports = async function build(program: BuildArgs) {
61
await buildHTML(program, activity).catch(err => {
62
reportFailure(
63
report.stripIndent`
64
- Building static HTML failed for path "${chalk.bold(err.context.path)}"
+ Building static HTML failed${
65
+ err.context && err.context.path
66
+ ? ` for path "${chalk.bold(err.context.path)}"`
67
+ : ``
68
+ }
69
70
See our docs page on debugging HTML builds for help https://gatsby.app/debug-html
71
`,
0 commit comments