Better errorComponent for Recipe page.
This commit is contained in:
parent
a3443ce274
commit
ec891b28b6
@ -33,6 +33,12 @@ export const Route = createFileRoute('/_auth/recipes/$username/$slug')({
|
|||||||
{error.status}: {error.message}
|
{error.status}: {error.message}
|
||||||
</p>
|
</p>
|
||||||
)
|
)
|
||||||
|
} else if (error instanceof Error) {
|
||||||
|
return (
|
||||||
|
<p>
|
||||||
|
{error.name}: {error.message}
|
||||||
|
</p>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return <ErrorComponent error={error} />
|
return <ErrorComponent error={error} />
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user