Skip to content

Commit

Permalink
chore: adjust name of failure bool
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell committed Jan 6, 2025
1 parent ff6bec0 commit cfea328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/algokit/cli/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/algokit/cli/project/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/algokit/core/typed_client_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit cfea328

Please sign in to comment.