diff options
-rw-r--r-- | src/nix-store/nix-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index ff15875e7090..23b97ca9e5aa 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -768,7 +768,7 @@ static void opVerify(Strings opFlags, Strings opArgs) else if (*i == "--repair") repair = true; else throw UsageError(format("unknown flag ‘%1%’") % *i); - if (ensureLocalStore().verifyStore(checkContents, repair)) { + if (store->verifyStore(checkContents, repair)) { printMsg(lvlError, "warning: not all errors were fixed"); throw Exit(1); } |