Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: raise UsageError
Browse files Browse the repository at this point in the history
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
@@ -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
@@ -54,7 +55,7 @@ def render_error(error: dict):
else:
message = response.text

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

response.raise_for_status()

0 comments on commit 1abc8e8

Please sign in to comment.