diff --git a/crates/goose-server/src/routes/goose_apps.rs b/crates/goose-server/src/routes/goose_apps.rs index ffc10f2f33..f2a326bc80 100644 --- a/crates/goose-server/src/routes/goose_apps.rs +++ b/crates/goose-server/src/routes/goose_apps.rs @@ -250,10 +250,6 @@ async fn store_app( ) -> Result, ErrorResponse> { let manager = GooseAppsManager::new()?; - if !manager.app_exists(&name) { - return Err(ErrorResponse::internal(format!("App '{}' not found", name))); - } - manager.update_app(&request.app)?; Ok(Json(SuccessResponse { diff --git a/ui/desktop/src/components/apps/GooseAppEditor.tsx b/ui/desktop/src/components/apps/GooseAppEditor.tsx index 0c72673074..134058d8bd 100644 --- a/ui/desktop/src/components/apps/GooseAppEditor.tsx +++ b/ui/desktop/src/components/apps/GooseAppEditor.tsx @@ -3,6 +3,7 @@ import { MainPanelLayout } from '../Layout/MainPanelLayout'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { GooseApp, iterateApp, storeApp } from '../../api'; +import { errorMessage } from '../../utils/conversionUtils'; interface GooseAppEditorProps { app?: GooseApp; @@ -128,10 +129,10 @@ export default function GooseAppEditor({ app, onReturn }: GooseAppEditorProps) { }, }, }); - } catch (_e) { - console.log(_e); + onReturn(); + } catch (e) { + window.alert('Failed to save:' + errorMessage(e)); } - onReturn(); }; return (