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

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