From 38deb96197cc35127333e09de145426bbda76d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 30 Jul 2022 15:16:19 +0200 Subject: [PATCH] Return specific error message if location doesn't exist --- src/routes/[country]/[location]/index.svelte | 2 -- src/routes/[country]/[location]/index.ts | 7 +++++-- src/routes/__error.svelte | 8 +++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/routes/[country]/[location]/index.svelte b/src/routes/[country]/[location]/index.svelte index 1956741..bf32d2b 100644 --- a/src/routes/[country]/[location]/index.svelte +++ b/src/routes/[country]/[location]/index.svelte @@ -27,8 +27,6 @@ export let totalPhotos: number export let product: any - console.log(product) - dayjs.extend(relativeTime) const { params } = $page diff --git a/src/routes/[country]/[location]/index.ts b/src/routes/[country]/[location]/index.ts index 22ad7b6..f2ce855 100644 --- a/src/routes/[country]/[location]/index.ts +++ b/src/routes/[country]/[location]/index.ts @@ -76,8 +76,11 @@ export async function GET ({ params }: RequestEvent): Promise
@@ -87,10 +88,11 @@