diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-04 15:15:51 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-04 15:18:25 +0000 |
commit | e9fad3006b0b6f3a6430fdbfc61392cac6834502 (patch) | |
tree | 9bcfa1850b4e672769b392fcc5a7bd05a1860cd1 /src/nix | |
parent | e86dd59dccb550c7f1a4d9333eee3c3a5c4043e9 (diff) |
Fix some of the issues raised by @edolstra
- More and better comments
- The easier renames
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/command.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index f697eb84c..37a4bc785 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -150,8 +150,9 @@ void MixProfile::updateProfile(const Buildables & buildables) }, [&](BuildableFromDrv bfd) { for (auto & output : bfd.outputs) { - if (!output.second) - throw Error("output path should be known because we just tried to build it"); + /* Output path should be known because we just tried to + build it. */ + assert(!output.second); result.push_back(*output.second); } }, |