lib/modules: improve error message when option is being accessed that isn't defined

This commit is contained in:
Sandro Jäckel
2024-08-30 11:31:26 +02:00
parent 5babc04681
commit ab8bf8c35b
3 changed files with 6 additions and 6 deletions

View File

@@ -861,7 +861,7 @@ let
else
# (nixos-option detects this specific error message and gives it special
# handling. If changed here, please change it there too.)
throw "The option `${showOption loc}' is used but not defined.";
throw "The option `${showOption loc}' was accessed but has no value defined. Try setting the option.";
isDefined = defsFinal != [];