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:
parent
dec85fe6c4
commit
b3f15f8d5c
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue