You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the same thing. You always have to provide the entire set of endpoints, so I find myself writing a lot of empty endpoint definitions for cases that cannot happen. I'd prefer it if it would either fall back to the default (rails) endpoints or just throw an exception when there is no definition for an endpoint that turned out to be needed after all.
Ok, I figure out how to do it pretty easily.
I added rescue to this error onemanstartup@8818a68
But to avoid double render you must return render in your custom handlers.
Right now, i don't a better way to merge 2 blocks without NonExhaustiveMatch error
Hi,
Due to reproduce demo (and example) and use 2 cases (success & unauthenticated)
Trailblazer::Endpoint.new.(result) do |m|
m.success { |result| redirect_to comments_url }
m.unauthenticated { |result| 401 }
end
Result => Dry::Matcher::NonExhaustiveMatchError in CommentsController#create
The text was updated successfully, but these errors were encountered: