From 31e8a67c6ca86643a978981a30d3fac28ea4fc46 Mon Sep 17 00:00:00 2001 From: Degreat Date: Sun, 2 Jun 2024 14:39:02 +0000 Subject: [PATCH] head --- client/app/components/error-boundary.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/app/components/error-boundary.tsx b/client/app/components/error-boundary.tsx index cfd7ad3..fb3277f 100644 --- a/client/app/components/error-boundary.tsx +++ b/client/app/components/error-boundary.tsx @@ -63,10 +63,9 @@ function ErrorBoundary() { - {statusCode === 404 - ? "404 Not Found" - : `${statusCode} An unexpected Error`} + {statusCode}: {getErrorLabel(statusCode)} + @@ -80,7 +79,9 @@ function ErrorBoundary() {
-

{getErrorLabel(statusCode)}

+

+ {statusCode}: {getErrorLabel(statusCode)} +

{getErrorDescription(statusCode)}