Respond with HTTP error code on update failure

This commit is contained in:
Matt-Yorkley
2021-08-14 20:18:55 +01:00
parent 10f6368524
commit 9be73a8ff1

View File

@@ -25,7 +25,7 @@ class SplitCheckoutController < ::BaseController
redirect_to_step
else
flash.now[:error] = I18n.t('split_checkout.errors.global')
render :edit
render :edit, status: :unprocessable_entity
end
end