Correct error message to reflect reality of dependency rules

hopefully fixes #2174
This commit is contained in:
Charlie Smurthwaite
2023-03-14 02:06:41 +00:00
parent 7ea00dfa3b
commit cefc7d17b8
+1 -1
View File
@@ -32,7 +32,7 @@ class IPPoolsController < ApplicationController
@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