Skip to content

Commit

Permalink
Flag errors should use FPM::Package::InvalidArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Sep 12, 2024
1 parent 843c729 commit e94f56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fpm/package/deb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FPM::Package::Deb < FPM::Package
option "--compression", "COMPRESSION", "The compression type to use, must " \
"be one of #{COMPRESSION_TYPES.join(", ")}.", :default => "gz" do |value|
if !COMPRESSION_TYPES.include?(value)
raise FPM::InvalidPackageConfiguration, "deb compression value of '#{value}' is invalid. " \
raise FPM::Package::InvalidArgument, "deb compression value of '#{value}' is invalid. " \
"Must be one of #{COMPRESSION_TYPES.join(", ")}"
end
value
Expand Down

0 comments on commit e94f56c

Please sign in to comment.