Skip to content

Commit 5f09e86

Browse files
committed
Fixed minor scoping error causing tests to fail in 1.9.2 and 1.9.3
1 parent 4633ad9 commit 5f09e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/middleware/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def call!(env)
4646
rescue Exception => e
4747
is_rescuable = rescuable?(e.class)
4848
if e.is_a?(Grape::Exceptions::Base) && !is_rescuable
49-
handler = lambda { error_response(e) }
49+
handler = lambda {|e| error_response(e) }
5050
else
5151
raise unless is_rescuable
5252
handler = options[:rescue_handlers][e.class] || options[:rescue_handlers][:all]

0 commit comments

Comments
 (0)