Permalink
Browse files

enhancement: Add path to 404 error message on server-side

  • Loading branch information...
Atinux committed Jan 18, 2018
1 parent c8f6dfb commit d444f2a5b1d1ecbbb3804d4e8f0a1bbc5c9d8671
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app/server.js
View
@@ -77,7 +77,7 @@ export default async ssrContext => {
return _app
}
const render404Page = () => {
app.context.error({ statusCode: 404, message: '<%= messages.error_404 %>' })
app.context.error({ statusCode: 404, path: ssrContext.url, message: '<%= messages.error_404 %>' })
return renderErrorPage()
}

0 comments on commit d444f2a

Please sign in to comment.