Skip to content

Commit

Permalink
Exceptions will now present the user with the message of the exceptio…
Browse files Browse the repository at this point in the history
…n that is risen
  • Loading branch information
cbrxyz committed Nov 17, 2024
1 parent 247c120 commit 015cc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def error_message(self, error: BaseException) -> tuple[str, float | None]:
app_commands.CommandInvokeError | commands.CommandInvokeError,
):
return (
f"This command experienced a general error of type `{error.original.__class__}`.",
f"This command experienced a general error of type `{error.original.__class__}`: {error.original!s}.",
delay,
)
elif isinstance(
Expand Down Expand Up @@ -228,7 +228,7 @@ def error_message(self, error: BaseException) -> tuple[str, float | None]:
return (
error_messages.get(
error.__class__,
f"Ups, an unhandled error occurred: `{error.__class__}`.",
f"Ups, an unhandled error occurred: `{error.__class__}` ({error!s}).",
),
delay,
)
Expand Down

0 comments on commit 015cc4a

Please sign in to comment.