forked from mirrors/nixpkgs
Add note: Keep error message in sync with nixos-option
This commit is contained in:
parent
c352bfeaf0
commit
4ded9beea2
|
@ -326,6 +326,8 @@ rec {
|
||||||
|
|
||||||
# The value with a check that it is defined
|
# The value with a check that it is defined
|
||||||
valueDefined = if res.isDefined then res.mergedValue else
|
valueDefined = if res.isDefined then res.mergedValue 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}' is used but not defined.";
|
||||||
|
|
||||||
# Apply the 'apply' function to the merged value. This allows options to
|
# Apply the 'apply' function to the merged value. This allows options to
|
||||||
|
|
Loading…
Reference in a new issue