diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-11 13:02:16 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-11 13:02:16 -0600 |
commit | 958e81987b5b86fba06090078a556f51037aa23c (patch) | |
tree | 1a311fc50f08ed5fc45ffc176c6ae25bc0e676d7 /src/nix-store/nix-store.cc | |
parent | 55eb71714854b262b5e1079ff250a13cc0bbf644 (diff) |
switch from printError warnings to logWarnings
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r-- | src/nix-store/nix-store.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 57063d42f..9b5cceccf 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -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); } } |