We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d4055 commit 5bcf914Copy full SHA for 5bcf914
lib/build.js
@@ -149,8 +149,7 @@ module.exports = async function build (sourceDir, cliOptions = {}) {
149
html = await renderer.renderToString(context)
150
} catch (e) {
151
console.error(chalk.red(`Error rendering ${pagePath}:`))
152
- console.error(e.stack)
153
- return
+ throw e
154
}
155
const filename = pagePath.replace(/\/$/, '/index.html').replace(/^\//, '')
156
const filePath = path.resolve(outDir, filename)
0 commit comments