Don't ignore fs.rename() errors

This commit is contained in:
Alexander Karatarakis 2018-04-06 14:46:40 -07:00
parent ee75dd08d3
commit d11014e2ae

View File

@ -222,7 +222,7 @@ namespace vcpkg::Commands::Fetch
Checks::exit_with_message(VCPKG_LINE_INFO, "Unexpected archive extension: %s", ext.u8string());
}
fs.rename(to_path_partial, to_path, ec);
fs.rename(to_path_partial, to_path);
}
static void download_file(const VcpkgPaths& paths,
@ -256,7 +256,7 @@ namespace vcpkg::Commands::Fetch
sha512,
actual_hash);
fs.rename(download_path_part, download_path, ec);
fs.rename(download_path_part, download_path);
}
static fs::path fetch_tool(const VcpkgPaths& paths, const std::string& tool_name, const ToolData& tool_data)