1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove unused error field 'buildError'

This commit is contained in:
Arunoda Susiripala 2017-04-11 14:55:53 +05:30
parent 6f9b51fce6
commit b5bd0daf62

View file

@ -147,7 +147,7 @@ export default class Server {
const compilationErr = this.getCompilationError(page) const compilationErr = this.getCompilationError(page)
if (compilationErr) { if (compilationErr) {
const customFields = { buildError: true } const customFields = { statusCode: 500 }
return await renderScriptError(req, res, page, compilationErr, customFields, this.renderOpts) return await renderScriptError(req, res, page, compilationErr, customFields, this.renderOpts)
} }
} }