nix-store --verify: Continue on errors

This commit is contained in:
Eelco Dolstra 2012-10-04 10:20:23 -04:00
parent 90b8a34f82
commit 904f50412c
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}