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

Replace white/blacklists with error hanlder and never re-raise errors #98

Closed

Conversation

zeisler
Copy link
Contributor

@zeisler zeisler commented Apr 5, 2016

@tfausak Checkout this PR when you have a chance. Thanks!

@zeisler zeisler changed the title Replace white/blacklists with error handler Replace white/blacklists with error hanlder and never re-raise errors Apr 5, 2016
@zeisler
Copy link
Contributor Author

zeisler commented Apr 21, 2016

Do you have any feedback on this? @tfausak

@tfausak
Copy link
Collaborator

tfausak commented Apr 21, 2016

I'm sorry it took me so long to look at this. I like some of what you've done here. In particular I think sending the error to a method in Stoplight (via handler.handle right now) is a good way to keep the sane default behavior around. I don't like creating all these modules and instances just to check a value against a function.

This feels like a good improvement on my work in #97. I want to think a little more about how to handle the fallback case without so much .new.

@tfausak tfausak added this to the v2.0.0 milestone Apr 25, 2016
@tfausak tfausak self-assigned this Apr 25, 2016
@tfausak
Copy link
Collaborator

tfausak commented Apr 25, 2016

I am going with #97 instead of this or #99. Thanks again for your help!

@tfausak tfausak closed this Apr 25, 2016
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.

None yet

2 participants