From baddd1f6844cd40b8da574c970ea5ecf510ee32f Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 16 Apr 2024 19:35:07 +0100 Subject: [PATCH] update error messages --- src/app/(pages)/player/[id]/page.tsx | 4 ++-- src/app/(pages)/server/[platform]/[hostname]/page.tsx | 4 ++-- src/app/components/player/lookup-player.tsx | 4 ++-- src/app/components/server/lookup-server.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/(pages)/player/[id]/page.tsx b/src/app/(pages)/player/[id]/page.tsx index 9c034ee..8d394b2 100644 --- a/src/app/(pages)/player/[id]/page.tsx +++ b/src/app/(pages)/player/[id]/page.tsx @@ -16,7 +16,7 @@ type Params = { export async function generateMetadata({ params: { id } }: Params): Promise { const player = await getData(id); if (player == null) { - return generateEmbed({ title: "Unknown Player", description: "Player not found" }); + return generateEmbed({ title: "Unknown Player", description: "Invalid UUID / Username" }); } const { username, uniqueId, skin } = player; @@ -55,7 +55,7 @@ export default async function Page({ params }: Params) { - {player == null && } + {player == null && } {player != null && (
diff --git a/src/app/(pages)/server/[platform]/[hostname]/page.tsx b/src/app/(pages)/server/[platform]/[hostname]/page.tsx index c5f8fa3..05ca72f 100644 --- a/src/app/(pages)/server/[platform]/[hostname]/page.tsx +++ b/src/app/(pages)/server/[platform]/[hostname]/page.tsx @@ -20,7 +20,7 @@ type Params = { export async function generateMetadata({ params: { platform, hostname } }: Params): Promise { const server = await getData(platform, hostname); if (server == null) { - return generateEmbed({ title: "Unknown Server", description: "Server not found" }); + return generateEmbed({ title: "Unknown Server", description: "Server not responding" }); } const { hostname: serverHostname, players } = server; @@ -75,7 +75,7 @@ export default async function Page({ params: { platform, hostname } }: Params) {
- {server == null && } + {server == null && } {server != null && (
{favicon && ( diff --git a/src/app/components/player/lookup-player.tsx b/src/app/components/player/lookup-player.tsx index bb46133..bf03bfb 100644 --- a/src/app/components/player/lookup-player.tsx +++ b/src/app/components/player/lookup-player.tsx @@ -29,9 +29,9 @@ export function LookupPlayer() { }; return ( -
+
-
+ ); } diff --git a/src/app/components/server/lookup-server.tsx b/src/app/components/server/lookup-server.tsx index bb86016..e2374c3 100644 --- a/src/app/components/server/lookup-server.tsx +++ b/src/app/components/server/lookup-server.tsx @@ -32,10 +32,10 @@ export function LookupServer() { }; return ( -
+
-
+ ); }