mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
nix-store -r: Don't quietly ignore missing paths
This commit is contained in:
parent
17dc306aa3
commit
bf3725da2a
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ static PathSet realisePath(const Path & path, bool build = true)
|
|||
|
||||
else {
|
||||
if (build) store->ensurePath(path);
|
||||
else if (!store->isValidPath(path)) throw Error(format("path `%1%' does not exist and cannot be created") % path);
|
||||
return singleton<PathSet>(path);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue