mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: system string should not be empty
This commit is contained in:
parent
837c3612d4
commit
4b34feb4c2
1 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,8 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
#include <iomanip>
|
||||
|
||||
#include "strings-inline.hh"
|
||||
|
||||
using namespace nix;
|
||||
using namespace nix::flake;
|
||||
using json = nlohmann::json;
|
||||
|
@ -802,10 +804,11 @@ struct CmdFlakeCheck : FlakeCommand
|
|||
throw Error("some errors were encountered during the evaluation");
|
||||
|
||||
if (!omittedSystems.empty()) {
|
||||
// TODO: empty system is not visible; render all as nix strings?
|
||||
warn(
|
||||
"The check omitted these incompatible systems: %s\n"
|
||||
"Use '--all-systems' to check all.",
|
||||
dropEmptyInitThenConcatStringsSep(", ", omittedSystems)
|
||||
concatStringsSep(", ", omittedSystems)
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue