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

Fix a typo. (#1749)

This commit is contained in:
Arunoda Susiripala 2017-04-18 19:14:26 +05:30 committed by GitHub
parent dec85fe6c4
commit b3f15f8d5c

View file

@ -125,7 +125,7 @@ export async function renderScriptError (req, res, page, error, customFields, op
res.setHeader('Content-Type', 'text/javascript')
res.end(`
window.__NEXT_REGISTER_PAGE('${page}', function() {
var error = new Error('Page not exists: ${page}')
var error = new Error('Page does not exist: ${page}')
error.statusCode = 404
return { error: error }