about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-04T14·20-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-04T14·20-0400
commit904f50412cdd0b7d0ef4933e7a5b652a9454d644 (patch)
tree522ce7dcfe057a929c50a0faad7b3782710b5edf
parent90b8a34f821610a867b3a60d91c8e86267864be2 (diff)
nix-store --verify: Continue on errors
-rw-r--r--src/libstore/local-store.cc6
1 files changed, 4 insertions, 2 deletions
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;
             }
         }