-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Align error!
method signatures across different places.
#2468
Align error!
method signatures across different places.
#2468
Conversation
The 2eabc9b is on top the commit before the 2377 PR was merged. And it passes now. |
2eabc9b
to
1a8899d
Compare
The branch was rebased from the master and the spec are failing now with:
|
1a8899d
to
9a551b1
Compare
error!
helper methods error!
method signatures across different places to fix compatibility issues.
61cd18a
to
26db6d6
Compare
26db6d6
to
8cde122
Compare
error!
method signatures across different places to fix compatibility issues.error!
method signatures across different places.
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.
Looks good!
@dblock any plans for release this? |
I can do it this week unless @ericproulx or another maintainer wants to beat me to it? |
Just a quick reminder! |
Andrei, it will get done when it will get done. No reminders needed. Your company is welcome to hire any of the maintainers of grape to do it on your schedule, or at least sponsor the project. |
No pressure! And I would be happy to hire or sponsor any or all of the maintainers, but I hope I can contribute in other ways as well. By my PR's for example. |
Off topic about sponsoring the project: I was looking for an easy way to enter my credit card information and set up a monthly "buy a couple of coffees for grape maintainers" donation. But it's not very clear to me where to do that on the Tidelift page. So I just gave up. |
Appreciate it. I do have a sponsor profile :) |
@numbata Grape 2.1.3 is out :) Thank you for your patience. |
This pull request fix a compatibility issue with the
error!
method when used inrescue_from
block.Previously, the
rescue_from
block ran in context ofGrape::Middleware::Error
, whereerror!
method had one signature. Now, block run in context ofGrape::DSL::InsideRoute
, whereerror!
method has different signature. This change cause runtime errors whenerror!
method was called with extra arguments likebacktrace
andoriginal_exception
.This update make
error!
method signatures same across different contexts. By aligning these signatures,error!
method can handle additional arguments consistently and preventing errors.