2023-01-16 12:13:21 +01:00
|
|
|
type Props = {
|
|
|
|
|
error: Error
|
|
|
|
|
}
|
|
|
|
|
export const ErrorMessage = (props: Props) => {
|
|
|
|
|
return (
|
|
|
|
|
<div class="h-full flex justify-center items-center flex-col">
|
2023-01-25 11:27:47 +01:00
|
|
|
<p class="text-2xl text-center">{props.error.message}</p>
|
2023-12-20 08:31:22 +01:00
|
|
|
<pre>{JSON.stringify(props.error.cause, null, 2) as string}</pre>
|
2023-01-16 12:13:21 +01:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|