3
0
Fork 0
forked from mirrors/nixpkgs

Add note: Keep error message in sync with nixos-option

This commit is contained in:
Chuck 2019-09-16 08:21:54 -07:00 committed by Linus Heckemann
parent c352bfeaf0
commit 4ded9beea2

View file

@ -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