lib/grape/middleware/formatter.rb in grape-0.10.1 vs lib/grape/middleware/formatter.rb in grape-0.11.0
- old
+ new
@@ -79,9 +79,11 @@
else
env['rack.request.form_hash'] = body
end
env['rack.request.form_input'] = env['rack.input']
end
+ rescue Grape::Exceptions::Base => e
+ raise e
rescue StandardError => e
throw :error, status: 400, message: e.message
end
else
env['api.request.body'] = body