From 7d7e6640c7b3caa110addefb713061d1ef9b0c3f Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Mon, 11 Aug 2025 11:46:00 -0400 Subject: [PATCH] fix(fill): fixed filling --- fourdst/cli/bundle/fill.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fourdst/cli/bundle/fill.py b/fourdst/cli/bundle/fill.py index 42e65e2..0d0a6fb 100644 --- a/fourdst/cli/bundle/fill.py +++ b/fourdst/cli/bundle/fill.py @@ -95,7 +95,12 @@ def bundle_fill(bundle_path: Path = typer.Argument(..., help="The .fbundle file # 1. Find available targets and missing binaries using the core function try: - fillable_targets = get_fillable_targets(bundle_path) + response = get_fillable_targets(bundle_path) + if not response.get('success', False): + console.print(f"[red]Error analyzing bundle: {response.get('error', 'Unknown error')}[/red]") + raise typer.Exit(code=1) + + fillable_targets = response.get('data', {}) except Exception as e: console.print(f"[red]Error analyzing bundle: {e}[/red]") raise typer.Exit(code=1)