Report current order info on all checkout failures

This commit is contained in:
Matt-Yorkley
2021-11-14 20:01:32 +00:00
parent bbb47964db
commit ac5766b00b

View File

@@ -241,7 +241,7 @@ class CheckoutController < ::BaseController
end
def checkout_failed(error = RuntimeError.new(order_error))
Bugsnag.notify(error)
Bugsnag.notify(error, order: @order)
flash[:error] = order_error if flash.blank?
Checkout::PostCheckoutActions.new(@order).failure
end