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 {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue