1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 15:31:47 +02:00

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 { else {
if (build) store->ensurePath(path); 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); return singleton<PathSet>(path);
} }
} }