diff --git a/src/algokit/cli/generate.py b/src/algokit/cli/generate.py index f6deb317..f41992b2 100644 --- a/src/algokit/cli/generate.py +++ b/src/algokit/cli/generate.py @@ -165,7 +165,7 @@ def generate_client( generator.generate_all( app_spec_path_or_dir, output_path_pattern, - raise_on_failure=False, + raise_on_path_resolution_failure=False, ) except AppSpecsNotFoundError as ex: raise click.ClickException("No app specs found") from ex diff --git a/src/algokit/cli/project/link.py b/src/algokit/cli/project/link.py index 31df5548..fb6d08b6 100644 --- a/src/algokit/cli/project/link.py +++ b/src/algokit/cli/project/link.py @@ -90,7 +90,7 @@ def _link_projects( generator.generate_all( contract_project_root, output_path_pattern, - raise_on_failure=fail_fast, + raise_on_path_resolution_failure=fail_fast, ) except AppSpecsNotFoundError: click.secho( diff --git a/src/algokit/core/typed_client_generation.py b/src/algokit/core/typed_client_generation.py index 90b9fd66..3f6d0daf 100644 --- a/src/algokit/core/typed_client_generation.py +++ b/src/algokit/core/typed_client_generation.py @@ -107,7 +107,7 @@ def generate_all( app_spec_path_or_dir: Path, output_path_pattern: str | None, *, - raise_on_failure: bool, # TODO: NC - Maybe we should return the error instead? + raise_on_path_resolution_failure: bool, ) -> None: if not app_spec_path_or_dir.is_dir(): app_specs = [app_spec_path_or_dir] @@ -123,7 +123,7 @@ def accumulate_items_to_generate( ) -> dict[Path, tuple[Path, AppSpecType]]: output_path_result = self.resolve_output_path(app_spec, output_path_pattern) if output_path_result is None: - if raise_on_failure: + if raise_on_path_resolution_failure: raise click.ClickException(f"Error generating client for {app_spec}") return acc (output_path, app_spec_type) = output_path_result