nix-store --verify: Continue on errors
This commit is contained in:
parent
90b8a34f82
commit
904f50412c
1 changed files with 4 additions and 2 deletions
|
@ -1614,7 +1614,9 @@ bool LocalStore::verifyStore(bool checkContents, bool repair)
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
/* It's possible that the path got GC'ed, so ignore
|
/* It's possible that the path got GC'ed, so ignore
|
||||||
errors on invalid paths. */
|
errors on invalid paths. */
|
||||||
if (isValidPath(*i)) throw;
|
if (isValidPath(*i))
|
||||||
|
printMsg(lvlError, format("error: %1%") % e.msg());
|
||||||
|
else
|
||||||
printMsg(lvlError, format("warning: %1%") % e.msg());
|
printMsg(lvlError, format("warning: %1%") % e.msg());
|
||||||
errors = true;
|
errors = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue