Skip to content

Commit

Permalink
[CF Feedback] Change to User Error for more visibility (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadaismail-stripe authored Nov 10, 2023
1 parent 8472d9a commit 5be2ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe-force/translate/coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_salesforce_stripe_coupons_associated_to_sf_object(sf_client:, sf_object:
associations = get_quote_associations_for_sf_object(sf_client: sf_client, sf_object: sf_object)
if associations.size != coupon_data.size
log.info 'found a different number of coupons associations for sf object', salesforce_object: sf_object, sf_association_count: associations.size, sf_order_coupon_count: coupon_data.size
raise Integrations::Errors::ImpossibleInternalError.new("The sf object has a different number of quote / quote line associations than Order coupons.")
raise Integrations::Errors::UserError.new("Connector Error: There is different number of Quote or Quote Line Associations than Order or Item coupons.")
end

# there could be multiple coupons associated with a single order or order line
Expand Down

0 comments on commit 5be2ece

Please sign in to comment.