Merge pull request #444 from pra85/patch-1

Fix a typo in Readme
This commit is contained in:
Alexandre Chopin 2017-03-25 12:02:38 +01:00 committed by GitHub
commit 5127f4821e

View File

@ -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)
} }