Skip to content

Commit

Permalink
Add rootfs item hash on exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
philogicae committed Jan 13, 2025
1 parent 8041626 commit 115676e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph_client/commands/instance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ async def create(
try:
rootfs_message = await client.get_message(item_hash=rootfs, message_type=StoreMessage)
except MessageNotFoundError:
echo("Given rootfs volume does not exist on aleph.im")
echo(f"Given rootfs volume {rootfs} does not exist on aleph.im")
except ForgottenMessageError:
echo("Given rootfs volume has been deleted on aleph.im")
echo(f"Given rootfs volume {rootfs} has been deleted on aleph.im")

Check warning on line 291 in src/aleph_client/commands/instance/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/aleph_client/commands/instance/__init__.py#L288-L291

Added lines #L288 - L291 were not covered by tests
if not rootfs_message:
raise typer.Exit(code=1)
elif rootfs_size is None:
Expand Down

0 comments on commit 115676e

Please sign in to comment.