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
Guarantees specific error_handler catch was called against a more #120
Conversation
@manuwell does this have anything to do with the failing assertion on action_test.rb:53?
|
yes it is |
Cool thanks |
|
||
private | ||
def handler(exception) | ||
status 501, 'MyCustomError was throwed' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/throwed/thrown
end | ||
|
||
def standard_handler(exception) | ||
status 501, 'An unknown error was throwed' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/throwed/thrown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed o/
thks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls push
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its pushed ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do force push
generic exception caller.
Sorry again .. I forgot to push some changes =P But i think is fine now o/ |
Guarantees specific error_handler catch was called against a more
Hi guys,
I made a mistake on my last PR. When you have a stack of error_handlers from more specific errors to more generic error catcher, the last one always be called.
This PR fixes it.
Sorry by my mistake.