Skip to content

Commit

Permalink
fix: restore UsageError
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Nov 1, 2024
1 parent 8280c81 commit ac67e29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
)
from silverback.cluster.client import ClusterClient, PlatformClient
from silverback.cluster.types import ClusterTier, LogLevel, ResourceStatus
from silverback.exceptions import ClientError
from silverback.runner import PollingRunner, WebsocketRunner
from silverback.worker import run_worker

Expand Down Expand Up @@ -243,7 +242,7 @@ def new_workspace(
)

if not workspace_name:
raise ClientError("Must provide a name or a slug/name combo")
raise click.UsageError("Must provide a name or a slug/name combo")

platform.create_workspace(
workspace_name=workspace_name,
Expand Down Expand Up @@ -361,7 +360,7 @@ def new_cluster(
)

if not cluster_name:
raise ClientError("Must provide a name or a slug/name combo")
raise click.UsageError("Must provide a name or a slug/name combo")

cluster = workspace_client.create_cluster(
cluster_name=cluster_name,
Expand Down

0 comments on commit ac67e29

Please sign in to comment.