1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

dropEmptyInitThenConcatStringsSep -> concatStringSep: system string should not be empty

This commit is contained in:
Robert Hensing 2024-07-13 01:22:51 +02:00
parent 837c3612d4
commit 4b34feb4c2

View file

@ -21,6 +21,8 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <iomanip> #include <iomanip>
#include "strings-inline.hh"
using namespace nix; using namespace nix;
using namespace nix::flake; using namespace nix::flake;
using json = nlohmann::json; using json = nlohmann::json;
@ -802,10 +804,11 @@ struct CmdFlakeCheck : FlakeCommand
throw Error("some errors were encountered during the evaluation"); throw Error("some errors were encountered during the evaluation");
if (!omittedSystems.empty()) { if (!omittedSystems.empty()) {
// TODO: empty system is not visible; render all as nix strings?
warn( warn(
"The check omitted these incompatible systems: %s\n" "The check omitted these incompatible systems: %s\n"
"Use '--all-systems' to check all.", "Use '--all-systems' to check all.",
dropEmptyInitThenConcatStringsSep(", ", omittedSystems) concatStringsSep(", ", omittedSystems)
); );
}; };
}; };