From 9f8d88bb4e354bc95eb9964130b1a3d1300a0d0c Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Tue, 25 Feb 2025 11:47:51 -0500 Subject: [PATCH] fix overflow issue with stack trace --- src/components/UI/ErrorPage.tsx | 145 ++++++++++++++++---------------- 1 file changed, 73 insertions(+), 72 deletions(-) diff --git a/src/components/UI/ErrorPage.tsx b/src/components/UI/ErrorPage.tsx index a94af94d..26df17e8 100644 --- a/src/components/UI/ErrorPage.tsx +++ b/src/components/UI/ErrorPage.tsx @@ -10,84 +10,85 @@ export function ErrorPage({ error }: { error: Error }) { } return ( -
-
-
-
- - This is a little embarrassing... - -

- We are really sorry but an error occured in the web client that - caused it to crash. This is not supposed to happen and we are - working hard to fix it. -

-

- The best way to prevent this from happening again to you or anyone - else is to report the issue to us. -

-

Please include the following information in your report:

-
    -
  • What you were doing when the error occured
  • -
  • What you expected to happen
  • -
  • What actually happened
  • -
  • Any other information you think might be relevant
  • -
-

- You can report the issue to our{" "} - ", - logs: error?.stack, - })} - > - Github - - -

-

- Return to the dashboard -

+
+
+
+ + This is a little embarrassing... + +

+ We are really sorry but an error occurred in the web client that + caused it to crash.
+ This is not supposed to happen, and we are working hard to fix it. +

+

+ The best way to prevent this from happening again to you or anyone + else is to report the issue to us. +

+

Please include the following information in your report:

+
    +
  • What you were doing when the error occurred
  • +
  • What you expected to happen
  • +
  • What actually happened
  • +
  • Any other relevant information
  • +
+

+ You can report the issue to our{" "} + ", + logs: error?.stack, + })} + > + Github + + +

+

+ Return to the dashboard +

+
-
- Error Details - - {error?.message ? ( - <> - -
{`${error.message}`}
- - ) : null} - {error?.stack ? ( - <> - -
{`${error.stack}`}
- - ) : null} - {!error?.message && !error?.stack ? ( -
-                    {error.toString()}
-                  
- ) : null} -
-
-
+
Chripy the Meshtastic error
+
+ Error Details + + {error?.message && ( + <> + +

+ {error.message} +

+ + )} + {error?.stack && ( + <> + +

+ {error.stack} +

+ + )} + {!error?.message && !error?.stack && ( +

{error.toString()}

+ )} +
+
); }