Show version number in error screen (#2565)
This commit is contained in:
@@ -24,9 +24,15 @@ export function ErrorUI({ error }) {
|
|||||||
|
|
||||||
<h1 className="text-2xl font-semibold text-foreground dark:text-white">Honk!</h1>
|
<h1 className="text-2xl font-semibold text-foreground dark:text-white">Honk!</h1>
|
||||||
|
|
||||||
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
|
{window?.appConfig?.get('GOOSE_VERSION') !== undefined ? (
|
||||||
An error occurred.
|
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
|
||||||
</p>
|
An error occurred in Goose v{window?.appConfig?.get('GOOSE_VERSION') as string}.
|
||||||
|
</p>
|
||||||
|
) : (
|
||||||
|
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
|
||||||
|
An error occurred.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
<pre className="text-destructive text-sm dark:text-white p-4 bg-muted rounded-lg w-full overflow-auto border border-border">
|
<pre className="text-destructive text-sm dark:text-white p-4 bg-muted rounded-lg w-full overflow-auto border border-border">
|
||||||
{error.message}
|
{error.message}
|
||||||
|
|||||||
Reference in New Issue
Block a user