lib/grape/formatter/xml.rb in grape-0.16.2 vs lib/grape/formatter/xml.rb in grape-0.17.0

- old
+ new

@@ -2,10 +2,10 @@ module Formatter module Xml class << self def call(object, _env) return object.to_xml if object.respond_to?(:to_xml) - fail Grape::Exceptions::InvalidFormatter.new(object.class, 'xml') + raise Grape::Exceptions::InvalidFormatter.new(object.class, 'xml') end end end end end