From 4ef2974c0da4b9f166f73c97218bc1e66b4a5f85 Mon Sep 17 00:00:00 2001 From: Zane <75694352+zanesq@users.noreply.github.com> Date: Fri, 16 May 2025 15:37:31 -0700 Subject: [PATCH] Show version number in error screen (#2565) --- ui/desktop/src/components/ErrorBoundary.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/desktop/src/components/ErrorBoundary.tsx b/ui/desktop/src/components/ErrorBoundary.tsx index 26457aed..eec01f6f 100644 --- a/ui/desktop/src/components/ErrorBoundary.tsx +++ b/ui/desktop/src/components/ErrorBoundary.tsx @@ -24,9 +24,15 @@ export function ErrorUI({ error }) {
- An error occurred. -
+ {window?.appConfig?.get('GOOSE_VERSION') !== undefined ? ( ++ An error occurred in Goose v{window?.appConfig?.get('GOOSE_VERSION') as string}. +
+ ) : ( ++ An error occurred. +
+ )}
{error.message}