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

Error when invalid fallbacks are provided #114

Merged
merged 2 commits into from Apr 23, 2017
Merged

Error when invalid fallbacks are provided #114

merged 2 commits into from Apr 23, 2017

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented Apr 23, 2017

This fixes #101.

Previously we would silently allow fallbacks with bad arity, but this could lead to subtle bugs. It's better if we just crash on the invalid arity to force the user to notice quickly and address sooner.

@whitfin whitfin added this to the v3.0.0 milestone Apr 23, 2017
@whitfin whitfin self-assigned this Apr 23, 2017
@whitfin whitfin merged commit 34908f4 into master Apr 23, 2017
@whitfin whitfin deleted the issue-101 branch April 23, 2017 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide warning or error for incorrect number of arguments in fallback
1 participant