diff --git a/src/routes/(public)/(guest)/education/error/+page.svelte b/src/routes/(public)/(guest)/education/error/+page.svelte index 64dbc8eb4..d1d33b5db 100644 --- a/src/routes/(public)/(guest)/education/error/+page.svelte +++ b/src/routes/(public)/(guest)/education/error/+page.svelte @@ -6,9 +6,16 @@ $: message = $page.url.searchParams.get('message'); $: code = parseInt($page.url.searchParams.get('code')); + const getErrorTitle = () => { + if (code == 403) { + return "It looks like you're not currently eligible for the GitHub Student Developer Pack."; + } + return message; + }; + const getErrorExplanation = () => { if (code === 403) { - return 'You are not eligible for the education program.'; + return 'You can still sign in and explore Appwrite.'; } else if (code === 409) { return "You've already registered for the education program."; } @@ -17,14 +24,14 @@
-

{message}

+

{getErrorTitle()}

{getErrorExplanation()}