Skip to content

Commit

Permalink
fix(page): fall back to default error page (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Apr 12, 2021
1 parent 968903d commit 1c662e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/pages/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function error ({ baseUrl, basePath, error = 'default', res }) {
}
}

const { statusCode, heading, message, signin } = errors[error.toLowerCase()]
const { statusCode, heading, message, signin } = errors[error.toLowerCase()] ?? errors.default

res.status(statusCode)

Expand Down

1 comment on commit 1c662e9

@vercel
Copy link

@vercel vercel bot commented on 1c662e9 Apr 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.