Fix one more occurance of wrong encoding handling with `std::filesystem`

This commit is contained in:
Martchus 2022-03-16 19:45:59 +01:00
parent 1ac689392e
commit b441860cc6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void restoreOriginalFileFromBackupFile(
}
// remove original file and restore backup
std::filesystem::remove(originalPath, ec);
std::filesystem::remove(originalPathForOpen, ec);
if (ec) {
throw std::ios_base::failure("Unable to remove original file: " + ec.message());
}