Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: make arity error message actionable #1901

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

josephharrington
Copy link
Contributor

@josephharrington josephharrington commented Apr 15, 2022

The error that is bubbled up when using a handler with the wrong number
of arguments was an unintelligible assertion error with no info about
what failed. This made it nearly impossible to find the problem.

This change adds a better error message including contextual info so
that this error is actionable.

Closes #1898

The error that is bubbled up when using a handler with the wrong number
of arguments was an unintelligible assertion error with no info about
what failed. This made it nearly impossible to find the problem.

This change adds a better error message including contextual info so
that this error is actionable.
@josephharrington josephharrington merged commit 97b6f93 into master Apr 28, 2022
@josephharrington josephharrington deleted the improve-handler-arity-error-message branch April 28, 2022 22:55
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.

Improve handler error message on Restify 9
2 participants