Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions packages/gatsby/src/redux/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,10 @@ actions.createPage = (page: PageInput, plugin?: Plugin, traceId?: string) => {
`You have an empty file in the "src/pages" directory at "${relativePath}". Please remove it or make it a valid component`
)
console.log(``)
process.exit(1)
// TODO actually do die during builds.
// process.exit(1)
}

console.log(``)
console.log(``)
console.log(
`The page component at "${relativePath}" didn't pass validation`
)

if (!includesDefaultExport) {
console.log(``)
console.log(
Expand All @@ -249,7 +244,8 @@ actions.createPage = (page: PageInput, plugin?: Plugin, traceId?: string) => {
console.log(``)
}

process.exit(1)
// TODO actually do die during builds.
// process.exit(1)
}
}

Expand Down