diff --git a/silverback/_cli.py b/silverback/_cli.py index 82736d51..0de61d01 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -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 @@ -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, @@ -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,