diff --git a/silverback/exceptions.py b/silverback/exceptions.py index 2fa53d9c..ffc6c6d3 100644 --- a/silverback/exceptions.py +++ b/silverback/exceptions.py @@ -42,6 +42,7 @@ def __init__(self, *exceptions: Exception | str): super().__init__("Startup failure(s) detected. See logs for details.") +# NOTE: Subclass `click.UsageError` here so bad requests in CLI don't show stack trace class ClientError(SilverbackException, click.UsageError): """Exception for client errors in the HTTP request."""