lib/dwc-archive/expander.rb in dwc-archive-0.8.3 vs lib/dwc-archive/expander.rb in dwc-archive-0.9.0

- old
+ new

@@ -7,12 +7,12 @@ @unpacker = get_unpacker end def unpack clean - raise FileNotFoundError unless File.exists?(@archive_path) + raise DarwinCore::FileNotFoundError unless File.exists?(@archive_path) success = @unpacker.call(@path, @archive_path) if @unpacker - (@unpacker && success && $?.exitstatus == 0) ? success : (clean; raise UnpackingError) + (@unpacker && success && $?.exitstatus == 0) ? success : (clean; raise DarwinCore::UnpackingError) end def path @files_path ||= files_path end