diff --git a/lib/modules.nix b/lib/modules.nix index 9733929706f1..184b21de4865 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -39,7 +39,7 @@ rec { if m ? config || m ? options || m ? imports then let badAttrs = removeAttrs m ["imports" "options" "config" "key"]; in if badAttrs != {} then - throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. ${builtins.toXML m} " + throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'." else { inherit file; key = m.key or key;