Skip to content

Adding extra context information to on_error reporting#103

Merged
jwoertink merged 1 commit intomasterfrom
issues/96
Feb 17, 2026
Merged

Adding extra context information to on_error reporting#103
jwoertink merged 1 commit intomasterfrom
issues/96

Conversation

@jwoertink
Copy link
Copy Markdown
Collaborator

Fixes #96

Warning

This is technically a breaking change. When calling on_error manually, you must now pass a third arg even if nil.

This adds in access to the current connection object when the error happens. This should allow you to gather more information about who caused the error. I've also added the entire message payload to the error message... I'm not sure if that will be too big in some cases or not. I wasn't sure how else I could get access to that message since it's not attached to the connection.

@jwoertink jwoertink added the BREAKING CHANGE This includes a change that breaks backwards compatibility label Feb 16, 2026
@jwoertink jwoertink merged commit 661cc23 into master Feb 17, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE This includes a change that breaks backwards compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding more context to on_error

1 participant