Skip to content

Commit

Permalink
fix: raise UsageError
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Nov 1, 2024
1 parent a83e107 commit 1abc8e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from functools import cache
from typing import ClassVar, Literal

import click
import httpx
from ape import Contract
from ape.contracts import ContractInstance
Expand Down Expand Up @@ -54,7 +55,7 @@ def render_error(error: dict):
else:
message = response.text

raise RuntimeError(message)
raise click.UsageError(message)

response.raise_for_status()

Expand Down

0 comments on commit 1abc8e8

Please sign in to comment.