Skip to content

Commit

Permalink
fix: correctly display error messages (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed May 20, 2021
1 parent e6d5f0a commit 31cb717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/_error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const Error: NextPage<ErrorProps> = ({ statusCode }) => {
<div className="text-4xl">
{statusCode
? intl.formatMessage(messages.errormessagewithcode, {
statusCode: statusCode,
message: getErrorMessage(statusCode),
statusCode,
error: getErrorMessage(statusCode),
})
: getErrorMessage(statusCode)}
</div>
Expand Down

0 comments on commit 31cb717

Please sign in to comment.