8000 Fixes `TypeError` being raised instead of `InvalidParameterError` by iMacTia · Pull Request #54 · nicolasblanco/rails_param · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixes TypeError being raised instead of InvalidParameterError #54

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

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

iMacTia
Copy link
Collaborator
@iMacTia iMacTia commented Sep 24, 2019

Description

Type initializers (e.g. Integer()) raise a TypeError when passed some types (e.g. Boolean), and ArgumentError for others (e.g. String).
This change adds TypeError to the list of rescued exceptions that get re-raised as InvalidParameterError.
Fixes #48.

Fixes #48.
Explanation: Type initializers (e.g. `Integer()`) raise a `TypeError` when passed some types (e.g. Boolean), and `ArgumentError` for others (e.g. String).
This change adds TypeError to the list of rescued exception that get re-raised as `InvalidParameterError`.
@iMacTia iMacTia merged commit 2092168 into master Sep 24, 2019
@iMacTia iMacTia deleted the fix/#48-boolean-type-coercion branch September 24, 2019 12:46
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.

Boolean type conversion issue
1 participant
0