lib/berkshelf/errors.rb in berkshelf-3.2.4 vs lib/berkshelf/errors.rb in berkshelf-3.3.0
- old
+ new
@@ -319,15 +319,16 @@
end
class UnknownCompressionType < BerkshelfError
set_status_code(131)
- def initialize(destination)
+ def initialize(target, destination)
+ @target = target
@destination = destination
end
def to_s
- "The file at '#{@destination}' is not a known compression type"
+ "The file at '#{@target}' is not a known compression type, and cannot be decompressed into '#{@destination}'"
end
alias_method :message, :to_s
end