Skip to content

Commit

Permalink
Fixed minor scoping error causing tests to fail in 1.9.2 and 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgotterer committed Aug 10, 2012
1 parent 4633ad9 commit 5f09e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/middleware/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def call!(env)
rescue Exception => e
is_rescuable = rescuable?(e.class)
if e.is_a?(Grape::Exceptions::Base) && !is_rescuable
handler = lambda { error_response(e) }
handler = lambda {|e| error_response(e) }
else
raise unless is_rescuable
handler = options[:rescue_handlers][e.class] || options[:rescue_handlers][:all]
Expand Down

0 comments on commit 5f09e86

Please sign in to comment.