prettier
This commit is contained in:
parent
c97559a6b0
commit
8e3bea9429
2 changed files with 7 additions and 13 deletions
|
@ -10,9 +10,7 @@ export const load: PageServerLoad = async ({ url, request }) => {
|
|||
throw redirect(303, DEFAULT_REDIRECT_URL);
|
||||
}
|
||||
|
||||
const { data: error } = await KratosPublicApi.getSelfServiceError(
|
||||
id
|
||||
).catch((e) => {
|
||||
const { data: error } = await KratosPublicApi.getSelfServiceError(id).catch((e) => {
|
||||
console.log(e);
|
||||
throw redirect(303, DEFAULT_REDIRECT_URL);
|
||||
});
|
||||
|
|
|
@ -6,16 +6,12 @@
|
|||
</script>
|
||||
|
||||
<div class="flex h-full justify-center">
|
||||
<div
|
||||
class="place-self-center space-y-2 max-w-sm"
|
||||
>
|
||||
<div class="place-self-center space-y-2 max-w-sm">
|
||||
<h1 class="text-xl font-bold text-error">An Error Occurred</h1>
|
||||
{data.error.message}
|
||||
<div role="group" class="collapse collapse-arrow">
|
||||
<input id="collapse" type="checkbox" />
|
||||
<label for="collapse" class="collapse-title text-sm font-medium">
|
||||
Details
|
||||
</label>
|
||||
<label for="collapse" class="collapse-title text-sm font-medium"> Details </label>
|
||||
<div class="collapse-content">
|
||||
<code class="whitespace-normal break-all">{JSON.stringify(data)}</code>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue