diff --git a/frontend/src/routes/+error.svelte b/frontend/src/routes/+error.svelte new file mode 100644 index 0000000..52d0058 --- /dev/null +++ b/frontend/src/routes/+error.svelte @@ -0,0 +1,25 @@ + + +

An error occurred ({$page.status})

+ +{#if $page.status === 404} +

+ The page you were looking for was not found. If you're sure the page exists, check for any typos + in the address. +

+{:else if $page.status === 429} +

You've exceeded a rate limit, please try again later.

+{:else if $page.status === 500} +

An internal error occurred. Please try again later.

+

+ If this error keeps happening, please file a bug report with an explanation of what you did to cause the error. +

+{/if} + +

Error message: {$page.error?.message}

diff --git a/frontend/src/routes/@[username]/+error.svelte b/frontend/src/routes/@[username]/+error.svelte new file mode 100644 index 0000000..9d5d297 --- /dev/null +++ b/frontend/src/routes/@[username]/+error.svelte @@ -0,0 +1,22 @@ + + +

An error occurred ({$page.status})

+ +{#if $page.status === 404} +

The user you were looking for couldn't be found. Please check for any typos.

+{:else if $page.status === 429} +

You've exceeded a rate limit, please try again later.

+{:else if $page.status === 500} +

An internal error occurred. Please try again later.

+

+ If this error keeps happening, please file a bug report with an explanation of what you did to cause the error. +

+{/if} + +

Error message: {$page.error?.message}