aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-19 15:45:35 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-20 19:14:20 -0700
commitd80dd5cbc777ce765c2d6b78d7c485fdf05f284b (patch)
treefba5f9d1b871ec9104d9ba12db4ea183b061c9ee /toolsrc/include
parentab7985a34b8a4de59dc9a6e6c4c40fbb564797b8 (diff)
downloadvcpkg-d80dd5cbc777ce765c2d6b78d7c485fdf05f284b.tar.gz
vcpkg-d80dd5cbc777ce765c2d6b78d7c485fdf05f284b.zip
[vcpkg] Handle failure to store archive
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/files.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h
index 09393b9ee..ac1f192ae 100644
--- a/toolsrc/include/vcpkg/base/files.h
+++ b/toolsrc/include/vcpkg/base/files.h
@@ -36,6 +36,7 @@ namespace vcpkg::Files
virtual void write_lines(const fs::path& file_path, const std::vector<std::string>& lines) = 0;
virtual void write_contents(const fs::path& file_path, const std::string& data, std::error_code& ec) = 0;
virtual void rename(const fs::path& oldpath, const fs::path& newpath) = 0;
+ virtual void rename(const fs::path& oldpath, const fs::path& newpath, std::error_code& ec) = 0;
virtual bool remove(const fs::path& path) = 0;
virtual bool remove(const fs::path& path, std::error_code& ec) = 0;
virtual std::uintmax_t remove_all(const fs::path& path, std::error_code& ec) = 0;