diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-19T22·51+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-19T22·51+0100 |
commit | bf3725da2a1e4e91fc34b5faeb55bb3c02f68674 (patch) | |
tree | 88dee1403da838034bcbc5fc6086e43e37c72781 /src | |
parent | 17dc306aa32c48dcde6bfc12ad5e4b48f6b88974 (diff) |
nix-store -r: Don't quietly ignore missing paths
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-store/nix-store.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 902a2296786f..ca49e231c0d5 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -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); } } |