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

Commit eeb3d24

Browse files
author
Jonathan Kwok
committed
Merge pull request #357 from jgillman/add-response-content-error-for-ups
Add ResponseContentError for raised UPS error
2 parents 85ae7b5 + 34799c8 commit eeb3d24

File tree

1 file changed

+1
-1
lines changed
  • lib/active_shipping/carriers

1 file changed

+1
-1
lines changed

lib/active_shipping/carriers/ups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def create_shipment(origin, destination, packages, options = {})
194194
xml = parse_ship_confirm(confirm_response)
195195
success = response_success?(xml)
196196
message = response_message(xml)
197-
raise message unless success
197+
raise ActiveShipping::ResponseContentError, StandardError.new(message) unless success
198198
digest = response_digest(xml)
199199

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

0 commit comments

Comments
 (0)