diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index 09f096eba18..81a4c43b2a9 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -159,10 +159,10 @@ rec { ); errorSource = modules: - "The error may comes from the following files:\n" + ( + "The error may come from the following files:\n" + ( lib.concatStringsSep "\n" ( map (m: - if m ? key then toString m.key else "" + if m ? key then toString m.key else "" ) modules ) );