diff options
author | Alex Shabalin <alex.shabalin@tweag.io> | 2021-11-19 16:29:55 +0100 |
---|---|---|
committer | Alex Shabalin <alex.shabalin@tweag.io> | 2021-11-19 16:29:55 +0100 |
commit | 86b79628073154b853b2e57360c062654826f5ee (patch) | |
tree | 7d1b70ee7f43bc579ac38f128272461dfc226579 /src | |
parent | 4b28798bfcb659bf83557a33546a03115f8bfed2 (diff) |
Use warn to print a warning
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-env/nix-env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index 1c78b5307..490f450df 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -298,8 +298,8 @@ std::vector<Match> pickNewestOnly(EvalState & state, std::vector<Match> matches) matches.clear(); for (auto & [name, match] : newest) { if (multiple.find(name) != multiple.end()) - printInfo( - "warning: there are multiple derivations named '%1%'; using the first one", + warn( + "there are multiple derivations named '%1%'; using the first one", name); matches.push_back(match); } |