mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
Use std::variant to enforce BuildResult invariants
There is now a clean separation between successful and failing build results.
This commit is contained in:
parent
43550e8edb
commit
e731c43eae
29 changed files with 568 additions and 397 deletions
|
|
@ -322,7 +322,7 @@ StorePaths Store::topoSortPaths(const StorePathSet & paths)
|
|||
}},
|
||||
{[&](const StorePath & path, const StorePath & parent) {
|
||||
return BuildError(
|
||||
BuildResult::OutputRejected,
|
||||
BuildResult::Failure::OutputRejected,
|
||||
"cycle detected in the references of '%s' from '%s'",
|
||||
printStorePath(path),
|
||||
printStorePath(parent));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue