1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

replaceSymlink: fix quoting in error message

This commit is contained in:
Jörg Thalheim 2025-04-30 10:20:17 +02:00
parent 4548dd1abb
commit 408746cba6

View file

@ -629,14 +629,14 @@ void replaceSymlink(const fs::path & target, const fs::path & link)
fs::create_symlink(target, tmp);
} catch (fs::filesystem_error & e) {
if (e.code() == std::errc::file_exists) continue;
throw SysError("creating symlink '%1%' -> '%2%'", tmp, target);
throw SysError("creating symlink %1% -> %2%", tmp, target);
}
try {
fs::rename(tmp, link);
} catch (fs::filesystem_error & e) {
if (e.code() == std::errc::file_exists) continue;
throw SysError("renaming '%1%' to '%2%'", tmp, link);
throw SysError("renaming %1% to %2%", tmp, link);
}