Skip to content

Commit 3b52066

Browse files
authored
CLI: Error on "No deletion target" (#355)
1 parent ab8709e commit 3b52066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luxonis_ml/data/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ def delete(
182182

183183
if not where:
184184
print(
185-
"[yellow]No deletion target specified (local or remote). Nothing to delete.[/yellow]"
185+
"[red]No deletion target specified (local or remote). Nothing to delete.[/red]"
186186
)
187-
raise typer.Exit
187+
raise typer.Exit(1)
188188

189189
if not Confirm.ask(
190190
f"Delete dataset '{name}' with specified bucket '{bucket_storage}' from {where} storage?"

0 commit comments

Comments
 (0)