mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-17 04:24:31 +01:00
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>
|
||||
|
||||
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
|
||||
An error occurred.
|
||||
</p>
|
||||
{window?.appConfig?.get('GOOSE_VERSION') !== undefined ? (
|
||||
<p className="text-base text-textSubtle dark:text-muted-foreground mb-2">
|
||||
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">
|
||||
{error.message}
|
||||
|
||||
Reference in New Issue
Block a user