mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
switch from printError warnings to logWarnings
This commit is contained in:
parent
55eb717148
commit
958e81987b
6 changed files with 31 additions and 10 deletions
|
@ -704,7 +704,10 @@ static void opVerify(Strings opFlags, Strings opArgs)
|
|||
else throw UsageError("unknown flag '%1%'", i);
|
||||
|
||||
if (store->verifyStore(checkContents, repair)) {
|
||||
printError("warning: not all errors were fixed");
|
||||
logWarning(ErrorInfo {
|
||||
.name = "Store consistency",
|
||||
.description = "not all errors were fixed"
|
||||
});
|
||||
throw Exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue