From fe9a3f3f2557722c8b881463b17e1cf22681c4bd Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Wed, 6 Mar 2024 00:08:04 +0100 Subject: [PATCH] API Not found error message --- frontend/src/routes/+page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/+page.ts b/frontend/src/routes/+page.ts index 0a476d7..c642531 100644 --- a/frontend/src/routes/+page.ts +++ b/frontend/src/routes/+page.ts @@ -10,7 +10,7 @@ export async function load({ fetch }) { const response = await fetch(`${API_URL}/route-categories`); categories = await response.json(); } catch (ex) { - error(500); + error(404, "API Not Found"); } return { categories };