lib/fedex/request/rate.rb in fedex-2.2.1 vs lib/fedex/request/rate.rb in fedex-2.2.2

- old
+ new

@@ -13,11 +13,11 @@ Fedex::Rate.new(rate_details) else error_message = if response[:rate_reply] [response[:rate_reply][:notifications]].flatten.first[:message] else - api_response["Fault"]["detail"]["fault"]["reason"] + "#{api_response["Fault"]["detail"]["fault"]["reason"]}\n#{api_response["Fault"]["detail"]["fault"]["details"]["ValidationFailureDetail"]["message"]}" end rescue $1 raise RateError, error_message end end @@ -61,6 +61,6 @@ %w{SUCCESS WARNING NOTE}.include?(response[:rate_reply][:highest_severity]) end end end -end \ No newline at end of file +end