diff --git a/.changeset/lazy-ties-double.md b/.changeset/lazy-ties-double.md new file mode 100644 index 0000000000..56c7381bbe --- /dev/null +++ b/.changeset/lazy-ties-double.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/explorer": patch +--- + +Added error messages to error page to facilitate easier troubleshooting. diff --git a/packages/explorer/src/app/(explorer)/error.tsx b/packages/explorer/src/app/(explorer)/error.tsx index 08c77d587a..2c1604616b 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}
+        
+ )} +