1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 20:51:00 +01:00

* Put WEXITSTATUS stuff somewhere else.

This commit is contained in:
Eelco Dolstra 2004-06-22 11:03:41 +00:00
parent 84007a0958
commit 5e2cf44a4d
4 changed files with 11 additions and 3 deletions

View file

@ -161,7 +161,7 @@ void copyPath(const Path & src, const Path & dst)
/* Wait for the child to finish. */
int status = pid.wait(true);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
if (!statusOk(status))
throw Error(format("cannot copy `%1% to `%2%': child %3%")
% src % dst % statusToString(status));
}