lib/grape/parser/json.rb in grape-1.5.2 vs lib/grape/parser/json.rb in grape-1.5.3

- old
+ new

@@ -6,10 +6,10 @@ class << self def call(object, _env) ::Grape::Json.load(object) rescue ::Grape::Json::ParseError # handle JSON parsing errors via the rescue handlers or provide error message - raise Grape::Exceptions::InvalidMessageBody, 'application/json' + raise Grape::Exceptions::InvalidMessageBody.new('application/json') end end end end end