Putting error messages on checkout into error flash for easier debugging

This commit is contained in:
Will Marshall
2014-05-20 12:39:22 +10:00
parent 4e463e7087
commit 2fc45d635d

View File

@@ -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