From bf3725da2a1e4e91fc34b5faeb55bb3c02f68674 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Nov 2012 23:51:56 +0100 Subject: [PATCH] nix-store -r: Don't quietly ignore missing paths --- src/nix-store/nix-store.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 902a22967..ca49e231c 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(path); } }