Skip to content

Commit

Permalink
Change invalid publish ip exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
phoozle committed Dec 4, 2024
1 parent e597ae6 commit 1c8a56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def ensure_valid_kamal_version
def ensure_valid_bind_ips(bind_ips)
bind_ips.present? && bind_ips.each do |ip|
next if ip =~ Resolv::IPv4::Regex || ip =~ Resolv::IPv6::Regex
raise Kamal::ConfigurationError, "Invalid publish IP address: #{ip}"
raise ArgumentError, "Invalid publish IP address: #{ip}"
end

true
Expand Down

0 comments on commit 1c8a56b

Please sign in to comment.