From 904f50412cdd0b7d0ef4933e7a5b652a9454d644 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Oct 2012 10:20:23 -0400 Subject: nix-store --verify: Continue on errors --- src/libstore/local-store.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 251449089796..7fa278a91e12 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1614,8 +1614,10 @@ bool LocalStore::verifyStore(bool checkContents, bool repair) } catch (Error & e) { /* It's possible that the path got GC'ed, so ignore errors on invalid paths. */ - if (isValidPath(*i)) throw; - printMsg(lvlError, format("warning: %1%") % e.msg()); + if (isValidPath(*i)) + printMsg(lvlError, format("error: %1%") % e.msg()); + else + printMsg(lvlError, format("warning: %1%") % e.msg()); errors = true; } } -- cgit 1.4.1