lib/active_shipping/carriers/fedex.rb in active_shipping-1.6.5 vs lib/active_shipping/carriers/fedex.rb in active_shipping-1.7.0

- old
+ new

@@ -603,9 +603,14 @@ when '9040' raise ActiveShipping::ShipmentNotFound, first_notification.at('Message').text else raise ActiveShipping::ResponseContentError, StandardError.new(first_notification.at('Message').text) end + elsif first_notification.at('Severity').text == 'FAILURE' + case first_notification.at('Code').text + when '9045' + raise ActiveShipping::ResponseContentError, StandardError.new(first_notification.at('Message').text) + end end tracking_number = tracking_details.at('TrackingNumber').text status_detail = tracking_details.at('StatusDetail') if status_detail.nil?