From e04760780e1af1acddd68f00b69386431552514c Mon Sep 17 00:00:00 2001 From: Adam Azzam <33043305+aaazzam@users.noreply.github.com> Date: Mon, 20 Jan 2025 20:10:50 -0500 Subject: [PATCH] fix block cli error messages (#16787) --- src/prefect/cli/block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prefect/cli/block.py b/src/prefect/cli/block.py index 236fa806780a..6e12b5218d14 100644 --- a/src/prefect/cli/block.py +++ b/src/prefect/cli/block.py @@ -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( @@ -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(