aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-07 19:09:26 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-07 19:51:55 +0000
commite913a2989fd7dfabfd93c89fd4295386eda4277f (patch)
treecb59783b9ef1db080fec0c45070b8badbbc15dba /src/nix/command.cc
parentf7ba16f9cbc27b141f1797a7c4f1fd3243f31683 (diff)
Squashed get CA derivations building
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r--src/nix/command.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index da32819da..4a93d8e73 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -137,7 +137,9 @@ void MixProfile::updateProfile(const Buildables & buildables)
},
[&](BuildableFromDrv bfd) {
for (auto & output : bfd.outputs) {
- result.push_back(output.second);
+ if (!output.second)
+ throw Error("output path should be known because we just tried to build it");
+ result.push_back(*output.second);
}
},
}, buildable);