Skip to content
New issue

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

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

Already on GitHub? # to your account

Friendly error message when calling interactor with non-hash arguments #178

Open
taylorthurlow opened this issue Dec 16, 2019 · 0 comments

Comments

@taylorthurlow
Copy link

If I call an interactor like so:

MyInteractor.call(something)

rather than the correct:

MyInteractor.call(something: "something")

Then I get a semi-cryptic error like:

NoMethodError:
       undefined method `each_pair' for #<MyInteractor:0x00007fa2fc407350>

It's pretty easy to see that I just called the interactor incorrectly, but it seems like it would be easy to check the provided parameters and raise a helpful error.

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

No branches or pull requests

1 participant