lib/active_shipping/carriers/fedex.rb in active_shipping-1.3.0 vs lib/active_shipping/carriers/fedex.rb in active_shipping-1.4.0
- old
+ new
@@ -573,10 +573,10 @@
if first_notification.at('Severity').text == 'ERROR'
case first_notification.at('Code').text
when '9040'
raise ActiveShipping::ShipmentNotFound, first_notification.at('Message').text
else
- raise ActiveShipping::ResponseContentError, first_notification.at('Message').text
+ 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')