Skip to content

Commit

Permalink
Update CLI and test response if cache save fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Feb 23, 2024
1 parent 6ca0041 commit b44e991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions circfirm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,5 @@ def cache_save(board: str, version: str, language: str) -> None:
args=(board, version, language),
)
except ConnectionError as err:
click.echo(" failed") # Mark as failed
raise click.exceptions.ClickException(err.args[0])
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def test_cache_save() -> None:
)
assert result.exit_code == 1
assert result.output == (
"Caching firmware version 7.3.0 for feather_m4_express... failed\n"
"Error: Could not download spectified UF2 file:\n"
"https://downloads.circuitpython.org/bin/feather_m4_express/"
"nolanguage/"
Expand Down

0 comments on commit b44e991

Please sign in to comment.