summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 9733929706f..184b21de486 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;