Open taylorthurlow opened 4 years ago
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.
If I call an interactor like so:
rather than the correct:
Then I get a semi-cryptic error like:
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.