diff --git a/messages/en.json b/messages/en.json index c400032..0e3e919 100644 --- a/messages/en.json +++ b/messages/en.json @@ -74,6 +74,6 @@ "discordNeeded": "You need to link your Discord account to access this page", "discordRoleNeeded": "You need the Donator Discord role to access this page", "addedDonator": "Added donator benefits to your account!", - "errorDonatorCheck": "Something went wrong when checking your Discord donator status. Please try again later.", + "errorDonatorCheck": "Something went wrong when checking your Discord donator status. Please try again later. {error}", "discordRateLimit": "{message} Retry after {retry_after} seconds." } diff --git a/src/pages/donator/check.astro b/src/pages/donator/check.astro index 63ca968..20b1621 100644 --- a/src/pages/donator/check.astro +++ b/src/pages/donator/check.astro @@ -33,7 +33,7 @@ async function getMessage() { const { message, retry_after }: { message: string; retry_after: number } = await memberInfoRes.json() return m.discordRateLimit({ message, retry_after }) } else if (memberInfoRes.status != 200) { - return m.errorDonatorCheck + return m.errorDonatorCheck({ error: await memberInfoRes.json() }) } const memberInfo: { roles: string[] } = await memberInfoRes.json()