From 9be73a8ff11f62ed032d1bfbee0a2ef438ddb2ac Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 14 Aug 2021 20:18:55 +0100 Subject: [PATCH] Respond with HTTP error code on update failure --- app/controllers/split_checkout_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/split_checkout_controller.rb b/app/controllers/split_checkout_controller.rb index 9849f10b19..8edc1a82d6 100644 --- a/app/controllers/split_checkout_controller.rb +++ b/app/controllers/split_checkout_controller.rb @@ -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