git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #95718 from Infinisil/fixup-nonexistant-option-error

lib/modules: Fix nonexistant option error

commit30842d0263f40150fa3de0150216229d1673f1e6 authorMaximilian Bosch <maximilian@mbosch.me> dateTue 18 Aug 2020, 11:12 (6 years ago) parentef5246fd5700d6
1 file changed+2−2
lib/modules.nix+2−2
lib/modules.nix+2−2
@@ -115,8 +115,8 @@ rec {
115115
116116 checkUnmatched =
117117 if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
118− let inherit (head merged.unmatchedDefns) file prefix;
119− in throw "The option `${showOption prefix}' defined in `${file}' does not exist."
118+ let firstDef = head merged.unmatchedDefns;
119+ in throw "The option `${showOption (prefix ++ firstDef.prefix)}' defined in `${firstDef.file}' does not exist."
120120 else null;
121121
122122 result = builtins.seq checkUnmatched {