mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 09:01:01 +01:00
Split DerivationGoal in two
This separation of concerns is generally good, but in particular sets up for removing `addWantedOutputs` next.
This commit is contained in:
parent
d1295448e0
commit
3b617e471b
10 changed files with 157 additions and 1589 deletions
|
|
@ -155,7 +155,7 @@ Goal::Done Goal::amDone(ExitCode result, std::optional<Error> ex)
|
|||
exitCode = result;
|
||||
|
||||
if (ex) {
|
||||
if (!waiters.empty())
|
||||
if (!preserveException && !waiters.empty())
|
||||
logError(ex->info());
|
||||
else
|
||||
this->ex = std::move(*ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue