Skip to content

Commit

Permalink
Correct error message to reflect reality of dependency rules
Browse files Browse the repository at this point in the history
hopefully fixes #2174
  • Loading branch information
catphish committed Mar 14, 2023
1 parent 7ea00df commit cefc7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ip_pools_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit cefc7d1

Please sign in to comment.