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

Raise a helpful exception when an operation returns no response #12

Closed
aldesantis opened this issue Jul 3, 2018 · 0 comments
Closed

Comments

@aldesantis
Copy link
Member

Sometimes, an operation stops the execution earlier than expected and doesn't return a response. This can happen because one of the steps returns a falsey value when it shouldn't. Right now this kind of situation is very complicated to debug because you get a cryptic error message (NoMethodError (undefined method headers' for nil:NilClass)`) and no indication of what went wrong.

Instead, when an operation has no result.response, we could raise a helpful exception from pragma-rails and maybe even integrate with pragmarb/pragma#24 to tell the user where the execution stopped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant