From 8e7292783906daab9aa2ddea4661314186d1ee91 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 3 Sep 2024 18:52:34 +0300 Subject: [PATCH 1/4] show error --- packages/explorer/src/app/(explorer)/error.tsx | 8 +++++++- .../[worldAddress]/explorer/DataExplorer.tsx | 16 ++++++++++++++-- .../explorer/src/app/api/utils/getDatabase.ts | 6 ++++-- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/packages/explorer/src/app/(explorer)/error.tsx b/packages/explorer/src/app/(explorer)/error.tsx index 08c77d587a..be9de6768c 100644 --- a/packages/explorer/src/app/(explorer)/error.tsx +++ b/packages/explorer/src/app/(explorer)/error.tsx @@ -10,13 +10,19 @@ type Props = { reset: () => void; }; -export default function Error({ reset }: Props) { +export default function Error({ reset, error }: Props) { const getUrl = useWorldUrl(); return (

400

Something went wrong :(

+ {error.message && ( +
+          {error.message}
+        
+ )} +