diff --git a/frontend/src/layouts/AppLayout/ErrorBoundary.tsx b/frontend/src/layouts/AppLayout/ErrorBoundary.tsx index d9128d0ee..eb6ccd4f9 100644 --- a/frontend/src/layouts/AppLayout/ErrorBoundary.tsx +++ b/frontend/src/layouts/AppLayout/ErrorBoundary.tsx @@ -1,4 +1,5 @@ import React, { ErrorInfo, ReactNode } from "react"; +import Link from "next/link"; import { useRouter } from "next/router"; import { faBugs } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; @@ -16,12 +17,16 @@ const ErrorPage = ({ error }: { error: Error | null }) => { const router = useRouter(); const currentUrl = router?.asPath?.split("?")?.[0]; + error = new Error( + "e26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefinede26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefinede26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefinede26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefinede26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefinede26eabc714f1/secrets/dev, error on line 45: Cannot read property 'split' of undefined" + ); + return (
- +

- Something unexpected went wrong. Please contact{" "} + Something went wrong. Please contact{" "} { href="mailto:support@infisical.com" > support@infisical.com - {" "} + + , or{" "} + + + join our Slack community + + {" "} if the issue persists.

- {error && ( -
+
+ + {error?.message && ( +
-

Error details:

-

+

Error details:

+

Please provide this error message when contacting support, as it will help us diagnose the issue at hand.

- {currentUrl}, {error?.message} + {currentUrl}, {error.message}

@@ -72,7 +89,7 @@ class ErrorBoundary extends React.Component; } return children;