aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src/pages/ErrorPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'thallium-frontend/src/pages/ErrorPage.tsx')
-rw-r--r--thallium-frontend/src/pages/ErrorPage.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/thallium-frontend/src/pages/ErrorPage.tsx b/thallium-frontend/src/pages/ErrorPage.tsx
index 916abc5..96955b6 100644
--- a/thallium-frontend/src/pages/ErrorPage.tsx
+++ b/thallium-frontend/src/pages/ErrorPage.tsx
@@ -1,28 +1,28 @@
-import { useRouteError, isRouteErrorResponse } from 'react-router-dom';
+import { useRouteError, isRouteErrorResponse } from "react-router-dom";
-import Card from '../components/Card';
+import Card from "../components/Card";
const ErrorPage = () => {
const error = useRouteError();
- let title = 'Unexpected Error', message, isUnexpected = false;
+ let title = "Unexpected Error", message, isUnexpected = false;
if (isRouteErrorResponse(error)) {
if (error.status === 404) {
- title = 'Not Found';
- message = 'The requested page could not be found.';
+ title = "Not Found";
+ message = "The requested page could not be found.";
} else {
message = error.statusText;
}
} else if (error instanceof Error) {
message = error.message;
isUnexpected = true;
- } else if (typeof error === 'string') {
+ } else if (typeof error === "string") {
message = error;
isUnexpected = true;
} else {
console.error(error);
- message = 'Unknown error';
+ message = "Unknown error";
isUnexpected = true;
}