Update error messages

This commit is contained in:
2022-07-30 17:03:12 +02:00
parent cc3ddb2148
commit 39c8f6dd14
3 changed files with 4 additions and 4 deletions

View File

@@ -12,6 +12,6 @@
<SiteTitle variant="inline" /> <SiteTitle variant="inline" />
<p class="text-medium"> <p class="text-medium">
{text} {@html text}
</p> </p>
</section> </section>

View File

@@ -79,7 +79,7 @@ export async function GET ({ params }: RequestEvent): Promise<RequestHandlerOutp
if (!location.length || location.length && params.country !== location[0].country.slug) { if (!location.length || location.length && params.country !== location[0].country.slug) {
return { return {
status: 404, status: 404,
body: Error("This location is not available… yet,"), body: Error("This location is not available… yet!"),
} }
} }

View File

@@ -30,7 +30,7 @@
message: 'Server error…', message: 'Server error…',
}, },
} }
const defaultMessage = 'but you are welcome to explore our locations or discover our shop!' const defaultMessage = 'But you are welcome to explore our locations or discover our shop.'
</script> </script>
<Metas <Metas
@@ -40,7 +40,7 @@
<PageTransition name="page-error"> <PageTransition name="page-error">
<div class="page-error__top"> <div class="page-error__top">
<Heading <Heading
text="{message ?? errors[status].message} {defaultMessage}" text="{message ?? errors[status].message} <br>{defaultMessage}"
/> />
<ListCTAs> <ListCTAs>