mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 05:31:00 +01:00
* Refactoring.
This commit is contained in:
parent
88fb4f6e53
commit
c4cb6ea2bc
4 changed files with 25 additions and 20 deletions
|
|
@ -164,7 +164,8 @@ void copyPath(const Path & src, const Path & dst)
|
|||
throw SysError("waiting for child");
|
||||
|
||||
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
|
||||
throw Error("cannot copy file: child died");
|
||||
throw Error(format("cannot copy `%1% to `%2%': child %3%")
|
||||
% src % dst % statusToString(status));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue