mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* Put WEXITSTATUS stuff somewhere else.
This commit is contained in:
parent
84007a0958
commit
5e2cf44a4d
4 changed files with 11 additions and 3 deletions
|
@ -501,7 +501,7 @@ void NormalisationGoal::buildDone()
|
|||
debug(format("builder process for `%1%' finished") % nePath);
|
||||
|
||||
/* Check the exit status. */
|
||||
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
|
||||
if (!statusOk(status)) {
|
||||
deleteTmpDir(false);
|
||||
throw Error(format("builder for `%1%' %2%")
|
||||
% nePath % statusToString(status));
|
||||
|
@ -1371,7 +1371,7 @@ void SubstitutionGoal::finished()
|
|||
debug(format("substitute for `%1%' finished") % storePath);
|
||||
|
||||
/* Check the exit status. */
|
||||
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
|
||||
if (!statusOk(status))
|
||||
throw Error(format("builder for `%1%' %2%")
|
||||
% storePath % statusToString(status));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue