mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
Fix a typo in Readme
Remove repeated word - status
This commit is contained in:
parent
c4962f09a9
commit
a13f30e7d4
@ -120,7 +120,7 @@ This is mostly used for `nuxt generate` and test purposes but you might find ano
|
|||||||
nuxt.renderRoute('/about', context)
|
nuxt.renderRoute('/about', context)
|
||||||
.then(function ({ html, error }) {
|
.then(function ({ html, error }) {
|
||||||
// You can check error to know if your app displayed the error page for this route
|
// You can check error to know if your app displayed the error page for this route
|
||||||
// Useful to set the correct status status code if an error appended:
|
// Useful to set the correct status code if an error appended:
|
||||||
if (error) {
|
if (error) {
|
||||||
return res.status(error.statusCode || 500).send(html)
|
return res.status(error.statusCode || 500).send(html)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user