Skip to content

Conversation

zardoy
Copy link
Contributor

@zardoy zardoy commented Aug 21, 2025

Previously, parse errors from custom payloads did not expose which channel caused the failure, making messages in console useless. This change introduces a CustomPayloadParseError that wraps the original error (as cause) and attaches the packet data, including the channel. The error message is prefixed with “Custom channel: - …”.

This follows common JS best practices for rich error objects and like in libraries Axios, which attach the response to errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant