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

This commit is contained in:
Robert Hensing
2024-09-02 10:08:49 +02:00
committed by GitHub
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 != [];