From 44c3dc7d3e3d1735600cabef030b26470fa2af26 Mon Sep 17 00:00:00 2001 From: Quratulain-bilal Date: Mon, 10 Aug 2026 22:19:36 +0500 Subject: [PATCH] fix: show error details in preset catalog config read failure (#3840) Capture and display the exception message when reading preset-catalogs.yml fails, instead of swallowing the error details. Matches the pattern used in preset_catalog_add 54 lines earlier. --- src/specify_cli/presets/_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specify_cli/presets/_commands.py b/src/specify_cli/presets/_commands.py index 145dc6e9d..b7e5ad06e 100644 --- a/src/specify_cli/presets/_commands.py +++ b/src/specify_cli/presets/_commands.py @@ -818,8 +818,8 @@ def preset_catalog_remove( try: config = yaml.safe_load(config_path.read_text(encoding="utf-8")) or {} - except Exception: - console.print("[red]Error:[/red] Failed to read preset catalog config.") + except Exception as e: + console.print(f"[red]Error:[/red] Failed to read preset catalog config: {e}") raise typer.Exit(1) catalogs = config.get("catalogs", [])