mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Report current order info on all checkout failures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user