Skip to content

Commit

Permalink
Merge pull request #224 from adamgotterer/validation_exceptions
Browse files Browse the repository at this point in the history
Fixed minor scoping error causing tests to fail in 1.9.2 and 1.9.3
  • Loading branch information
dblock committed Aug 11, 2012
2 parents 5117e20 + 5f09e86 commit 2d16cb9
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 2d16cb9

Please sign in to comment.