lib/zuora/response.rb in zuora-ruby-0.6.0 vs lib/zuora/response.rb in zuora-ruby-0.7.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'active_support/core_ext/hash/conversions' module Zuora class Response ERROR_STRINGS = ['Missing required value', 'are required fields'].freeze @@ -74,9 +76,9 @@ # @param [Array] errors def raise_errors(errors) error_string = errors.join(',') error = Zuora::Errors::InvalidValue.new(error_string, to_h) - fail error + raise error end end end