Why an error again…?

This commit is contained in:
2022-08-16 20:48:01 +02:00
parent 42e9029da8
commit 52e0407700
12 changed files with 12 additions and 12 deletions

View File

@@ -52,6 +52,6 @@ export const load: PageServerLoad = async () => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -92,6 +92,6 @@ export const load: PageServerLoad = async ({ params }) => {
product: product[0],
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -90,6 +90,6 @@ export const load: PageServerLoad = async ({ params }) => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -86,6 +86,6 @@ export const load: PageServerLoad = async () => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -18,6 +18,6 @@ export const POST: RequestHandler = async ({ request }) => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -25,6 +25,6 @@ export const POST: RequestHandler = async ({ request }) => {
}
}
} catch (err) {
throw error(403, err)
throw error(403, err.message)
}
}

View File

@@ -36,6 +36,6 @@ export const load: PageServerLoad = async () => {
...data
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -67,6 +67,6 @@ export const load: PageServerLoad = async ({ url }) => {
totalPhotos: data.total_published[0].count.id,
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -68,6 +68,6 @@ export const load: PageServerLoad = async () => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -51,6 +51,6 @@ export const load: PageServerLoad = async ({}) => {
}
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}

View File

@@ -48,6 +48,6 @@ export const load: PageServerLoad = async ({ params }) => {
}
}
} catch (err) {
throw error(404, err)
throw error(404)
}
}

View File

@@ -31,6 +31,6 @@ export const load: PageServerLoad = async () => {
issues: data.newsletter,
}
} catch (err) {
throw error(500, err)
throw error(500, err.message)
}
}