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

@@ -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)
}
}