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

Commit

Permalink
Add ResponseContentError for raised UPS error
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillman committed Apr 21, 2016
1 parent b26844f commit 34799c8
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 34799c8

Please sign in to comment.