lib/jim/installer.rb in jim-0.3.1 vs lib/jim/installer.rb in jim-0.3.2

- old
+ new

@@ -101,10 +101,11 @@ FileUtils.rm_rf(final_path) elsif Digest::MD5.hexdigest(File.read(final_path)) == Digest::MD5.hexdigest(File.read(@fetched_path)) logger.warn "Duplicate file, skipping" return final_path else - raise(Jim::FileExists.new(final_path)) + logger.error "Trying to install to #{final_path}, but file already exists and is different." + return false end end Downlow.extract(@fetched_path, :destination => final_path, :tmp_dir => tmp_root) # install json