1
0
Fork 0
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:
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 <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)
);
};
};