mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
printMsg(lvlError, ...) -> printError(...) etc.
This commit is contained in:
parent
4036185cb4
commit
c55bf085eb
30 changed files with 140 additions and 140 deletions
|
@ -121,7 +121,7 @@ bool PathLocks::lockPaths(const PathSet & _paths,
|
|||
/* Acquire an exclusive lock. */
|
||||
if (!lockFile(fd.get(), ltWrite, false)) {
|
||||
if (wait) {
|
||||
if (waitMsg != "") printMsg(lvlError, waitMsg);
|
||||
if (waitMsg != "") printError(waitMsg);
|
||||
lockFile(fd.get(), ltWrite, true);
|
||||
} else {
|
||||
/* Failed to lock this path; release all other
|
||||
|
@ -174,7 +174,7 @@ void PathLocks::unlock()
|
|||
|
||||
lockedPaths.erase(i.second);
|
||||
if (close(i.first) == -1)
|
||||
printMsg(lvlError,
|
||||
printError(
|
||||
format("error (ignored): cannot close lock file on ‘%1%’") % i.second);
|
||||
|
||||
debug(format("lock released on ‘%1%’") % i.second);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue