mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Putting error messages on checkout into error flash for easier debugging
This commit is contained in:
@@ -26,7 +26,7 @@ class CheckoutController < Spree::CheckoutController
|
||||
if @order.next
|
||||
state_callback(:after)
|
||||
else
|
||||
flash[:error] = t(:payment_processing_failed)
|
||||
flash[:error] = @order.errors.full_messages.to_sentence
|
||||
update_failed
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user