Fix one more occurance of wrong encoding handling with `std::filesystem`
This commit is contained in:
parent
1ac689392e
commit
b441860cc6
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue