mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +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 <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)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue