Commit e4c1f88d authored by Jan Reimes's avatar Jan Reimes
Browse files

Suppress stack trace on workspace activate for non-existent workspace

parent 74318d6b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -33,7 +33,11 @@ def workspace_list() -> None:
def workspace_activate(workspace_name: str = typer.Argument(..., help="Workspace name")) -> None:
    """Activate workspace for default command targets."""
    normalized = normalize_workspace_name(workspace_name)
    try:
        set_active_workspace(normalized)
    except ValueError as e:
        console.print(f"[red]{e}[/red]")
        raise typer.Exit(1)
    console.print(f"[green]Workspace '{normalized}' is now active.[/green]")