about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-19T22·51+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-19T22·51+0100
commitbf3725da2a1e4e91fc34b5faeb55bb3c02f68674 (patch)
tree88dee1403da838034bcbc5fc6086e43e37c72781 /src
parent17dc306aa32c48dcde6bfc12ad5e4b48f6b88974 (diff)
nix-store -r: Don't quietly ignore missing paths
Diffstat (limited to 'src')
-rw-r--r--src/nix-store/nix-store.cc1
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);
     }
 }