mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
Remove debug code
This commit is contained in:
parent
e28ea1239f
commit
1e24ce2a9b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user