From e94f56c01ec7eedaa767345c05bc0560a4c38864 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Thu, 12 Sep 2024 10:48:55 -0700 Subject: [PATCH] Flag errors should use FPM::Package::InvalidArgument --- lib/fpm/package/deb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fpm/package/deb.rb b/lib/fpm/package/deb.rb index ba8975e79..0d536528f 100644 --- a/lib/fpm/package/deb.rb +++ b/lib/fpm/package/deb.rb @@ -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