From cefc7d17b82f610001859a8e323ee1dfde149ba5 Mon Sep 17 00:00:00 2001 From: Charlie Smurthwaite Date: Tue, 14 Mar 2023 02:06:41 +0000 Subject: [PATCH] Correct error message to reflect reality of dependency rules hopefully fixes #2174 --- app/controllers/ip_pools_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ip_pools_controller.rb b/app/controllers/ip_pools_controller.rb index c57f91bd..4cbc9103 100644 --- a/app/controllers/ip_pools_controller.rb +++ b/app/controllers/ip_pools_controller.rb @@ -32,7 +32,7 @@ def destroy @ip_pool.destroy redirect_to_with_json :ip_pools, :notice => "IP pool has been removed successfully." rescue ActiveRecord::DeleteRestrictionError => e - redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it is still assigned to servers/rules." + redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it still has associated addresses or servers." end private