Skip to content

Commit e047607

Browse files
authored
fix block cli error messages (#16787)
1 parent 6b7c1ee commit e047607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prefect/cli/block.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def block_delete(
300300
await client.delete_block_document(block_id)
301301
exit_with_success(f"Deleted Block '{block_id}'.")
302302
except ObjectNotFound:
303-
exit_with_error(f"Deployment {block_id!r} not found!")
303+
exit_with_error(f"Block {block_id!r} not found!")
304304
elif slug is not None:
305305
if "/" not in slug:
306306
exit_with_error(
@@ -376,7 +376,7 @@ async def block_inspect(
376376
block_id, include_secrets=False
377377
)
378378
except ObjectNotFound:
379-
exit_with_error(f"Deployment {block_id!r} not found!")
379+
exit_with_error(f"Block {block_id!r} not found!")
380380
elif slug is not None:
381381
if "/" not in slug:
382382
exit_with_error(

0 commit comments

Comments
 (0)