Add refresh instruction for 500 error

This commit is contained in:
Made Baruna 2021-12-23 22:09:49 +07:00
parent 0295b6d0e5
commit fece737b75
No known key found for this signature in database
GPG key ID: 5AA5DA16AA5DCEAD

View file

@ -14,7 +14,8 @@
<h1 class="bg-red-500 text-red-700 rounded-lg px-4 font-display font-black" style="font-size: 6rem;">{status}</h1>
<h1
class="absolute top-0 left-0 text-background-secondary font-display font-black text-6xl"
style="margin-left: 14px; z-index: 0; font-size: 6rem;">
style="margin-left: 14px; z-index: 0; font-size: 6rem;"
>
{status}
</h1>
</div>
@ -23,6 +24,10 @@
{status === 404 ? 'Page not found! Try one on the menu :)' : error.message}
</p>
{#if status === 500}
<p class="text-white text-xl mt-4 text-center">You can try refresh the page by pressing CTRL+F5</p>
{/if}
{#if dev && error.stack}
<pre class="mt-8 p-4 rounded-lg text-black bg-red-400">{error.stack}</pre>
{/if}