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.

This commit is contained in:
Arunoda Susiripala 2017-04-12 21:42:04 +05:30
parent 95558ae47c
commit 6f735eeb05

View file

@ -123,7 +123,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 }