Merge pull request #95718 from Infinisil/fixup-nonexistant-option-error
lib/modules: Fix nonexistant option error
This commit is contained in:
commit
30842d0263
@ -115,8 +115,8 @@ rec {
|
|||||||
|
|
||||||
checkUnmatched =
|
checkUnmatched =
|
||||||
if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
|
if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
|
||||||
let inherit (head merged.unmatchedDefns) file prefix;
|
let firstDef = head merged.unmatchedDefns;
|
||||||
in throw "The option `${showOption prefix}' defined in `${file}' does not exist."
|
in throw "The option `${showOption (prefix ++ firstDef.prefix)}' defined in `${firstDef.file}' does not exist."
|
||||||
else null;
|
else null;
|
||||||
|
|
||||||
result = builtins.seq checkUnmatched {
|
result = builtins.seq checkUnmatched {
|
||||||
|
Loading…
Reference in New Issue
Block a user