Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pass exception value into Sentry #119

Merged
merged 2 commits into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bot/exts/core/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ async def on_command_error(self, ctx: Context, error: CommandError) -> None:
embed = self._get_error_embed("Command not found", str(error))
else:
# If we haven't handled it by this point, it is considered an unexpected/handled error.
log.exception(f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}")
log.exception(
f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}",
exc_info=error,
)
embed = self._get_error_embed(
"Unexpected error",
"Sorry, an unexpected error occurred. Please let us know!\n\n"
Expand Down
Loading