From ced0cb149918d47c9e8357216623ae7f730e2fa3 Mon Sep 17 00:00:00 2001 From: alex-mcgovern Date: Fri, 24 Jan 2025 16:36:45 +0000 Subject: [PATCH] nit: replace delete with archive in workspace crud errors --- src/codegate/workspaces/crud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegate/workspaces/crud.py b/src/codegate/workspaces/crud.py index 6d177522..77d8212b 100644 --- a/src/codegate/workspaces/crud.py +++ b/src/codegate/workspaces/crud.py @@ -161,7 +161,7 @@ async def soft_delete_workspace(self, workspace_name: str): if workspace_name == "": raise WorkspaceCrudError("Workspace name cannot be empty.") if workspace_name == DEFAULT_WORKSPACE_NAME: - raise WorkspaceCrudError("Cannot delete default workspace.") + raise WorkspaceCrudError("Cannot archive default workspace.") selected_workspace = await self._db_reader.get_workspace_by_name(workspace_name) if not selected_workspace: @@ -170,7 +170,7 @@ async def soft_delete_workspace(self, workspace_name: str): # Check if workspace is active, if it is, make the default workspace active active_workspace = await self._db_reader.get_active_workspace() if active_workspace and active_workspace.id == selected_workspace.id: - raise WorkspaceCrudError("Cannot delete active workspace.") + raise WorkspaceCrudError("Cannot archive active workspace.") db_recorder = DbRecorder() try: