nix-store -r: Don't quietly ignore missing paths

This commit is contained in:
Eelco Dolstra 2012-11-19 23:51:56 +01:00
parent 17dc306aa3
commit bf3725da2a

View file

@ -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);
}
}