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

This commit is contained in:
Chuck
2019-11-04 15:11:45 +01:00
committed by Linus Heckemann
parent c352bfeaf0
commit 4ded9beea2
+2
View File
@@ -326,6 +326,8 @@ rec {
# The value with a check that it is defined
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.";
# Apply the 'apply' function to the merged value. This allows options to