daemon: Quote consistently within a string.

* nix/libstore/build.cc (DerivationGoal::registerOutput): ‘’ → `'.
This commit is contained in:
Tobias Geerinckx-Rice 2022-06-05 02:00:00 +02:00
parent e3b94eddf6
commit 0ace58b99c
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2422,7 +2422,7 @@ void DerivationGoal::registerOutputs()
if (pathExists(dst)) deletePath(dst); if (pathExists(dst)) deletePath(dst);
if (rename(actualPath.c_str(), dst.c_str())) if (rename(actualPath.c_str(), dst.c_str()))
throw SysError(format("renaming `%1%' to `%2%'") % actualPath % dst); throw SysError(format("renaming `%1%' to `%2%'") % actualPath % dst);
throw Error(format("derivation `%1%' may not be deterministic: output `%2%' differs from %3%") throw Error(format("derivation `%1%' may not be deterministic: output `%2%' differs from `%3%'")
% drvPath % path % dst); % drvPath % path % dst);
} else } else
throw Error(format("derivation `%1%' may not be deterministic: output `%2%' differs") throw Error(format("derivation `%1%' may not be deterministic: output `%2%' differs")