Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #357 from jgillman/add-response-content-error-for-ups
Browse files Browse the repository at this point in the history
Add ResponseContentError for raised UPS error
  • Loading branch information
Jonathan Kwok committed Apr 27, 2016
2 parents 85ae7b5 + 34799c8 commit eeb3d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_shipping/carriers/ups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def create_shipment(origin, destination, packages, options = {})
xml = parse_ship_confirm(confirm_response)
success = response_success?(xml)
message = response_message(xml)
raise message unless success
raise ActiveShipping::ResponseContentError, StandardError.new(message) unless success
digest = response_digest(xml)

# STEP 2: Accept. Use shipment digest in first response to get the actual label.
Expand Down

0 comments on commit eeb3d24

Please sign in to comment.