Why an error again…?
This commit is contained in:
@@ -92,6 +92,6 @@ export const load: PageServerLoad = async ({ params }) => {
|
||||
product: product[0],
|
||||
}
|
||||
} catch (err) {
|
||||
throw error(500, err)
|
||||
throw error(500, err.message)
|
||||
}
|
||||
}
|
||||
@@ -90,6 +90,6 @@ export const load: PageServerLoad = async ({ params }) => {
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
throw error(500, err)
|
||||
throw error(500, err.message)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user