Skip to content

Commit

Permalink
fix block cli error messages (#16787)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaazzam authored Jan 21, 2025
1 parent 6b7c1ee commit e047607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefect/cli/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async def block_delete(
await client.delete_block_document(block_id)
exit_with_success(f"Deleted Block '{block_id}'.")
except ObjectNotFound:
exit_with_error(f"Deployment {block_id!r} not found!")
exit_with_error(f"Block {block_id!r} not found!")
elif slug is not None:
if "/" not in slug:
exit_with_error(
Expand Down Expand Up @@ -376,7 +376,7 @@ async def block_inspect(
block_id, include_secrets=False
)
except ObjectNotFound:
exit_with_error(f"Deployment {block_id!r} not found!")
exit_with_error(f"Block {block_id!r} not found!")
elif slug is not None:
if "/" not in slug:
exit_with_error(
Expand Down

0 comments on commit e047607

Please sign in to comment.