From 5b365fce3b6ee6a3f36aa7030b254b7fda13015b Mon Sep 17 00:00:00 2001 From: Soufiane Date: Tue, 9 Jan 2024 15:31:21 +0100 Subject: [PATCH] Fix error handling for items relationships destroy action [SCI-9718] (#6911) --- app/controllers/repository_row_connections_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/repository_row_connections_controller.rb b/app/controllers/repository_row_connections_controller.rb index f593c000b..0ec47d8e5 100644 --- a/app/controllers/repository_row_connections_controller.rb +++ b/app/controllers/repository_row_connections_controller.rb @@ -78,9 +78,9 @@ class RepositoryRowConnectionsController < ApplicationController connection.destroy! head :no_content - rescue StandardError - head :unprocessable_entity end + rescue StandardError + head :unprocessable_entity end def repositories