diff --git a/src/nix/flake.cc b/src/nix/flake.cc index fdcb37b84a4c..c5928ad9207a 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -722,10 +722,11 @@ struct CmdFlakeCheck : FlakeCommand throw Error("some errors were encountered during the evaluation"); if (!omittedSystems.empty()) { - logger->warn("The check omitted these incompatible systems (use '--all-systems' to check all):"); - for (auto omittedSystem: omittedSystems) - logger->warn(omittedSystem); - } + warn( + "The check omitted these incompatible systems: %s\n" + "Use '--all-systems' to check all.", + concatStringsSep(", ", omittedSystems) + ); } };