From fcab3a81cd368c4af2c2ba95f466b3d4a11e2187 Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Tue, 21 Aug 2018 13:09:26 -0700 Subject: Add unit tests and fixtures for OfflineDatabase::mergeDatabase --- src/mbgl/util/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/util') diff --git a/src/mbgl/util/io.cpp b/src/mbgl/util/io.cpp index c84634ac88..84a9ce7eac 100644 --- a/src/mbgl/util/io.cpp +++ b/src/mbgl/util/io.cpp @@ -55,7 +55,7 @@ void deleteFile(const std::string& filename) { void copyFile(const std::string& destination, const std::string& source) { std::ifstream src(source, std::ios::binary); if (!src.good()) { - throw IOException(errno, "Cannot read file " + destination); + throw IOException(errno, "Cannot read file " + source); } std::ofstream dst(destination, std::ios::binary); if (!dst.good()) { -- cgit v1.2.1