forked from lix-project/lix
nix-store -r: Don't quietly ignore missing paths
This commit is contained in:
parent
17dc306aa3
commit
bf3725da2a
|
@ -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