lib/grape/request.rb in grape-1.6.2 vs lib/grape/request.rb in grape-1.7.0
- old
+ new
@@ -15,9 +15,11 @@
def params
@params ||= build_params
rescue EOFError
raise Grape::Exceptions::EmptyMessageBody.new(content_type)
+ rescue Rack::Multipart::MultipartPartLimitError
+ raise Grape::Exceptions::TooManyMultipartFiles.new(Rack::Utils.multipart_part_limit)
end
def headers
@headers ||= build_headers
end