summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-02-03 03:15:56 +0300
committerNicolas B. Pierron <nicolas.b.pierron@gmail.com>2017-02-03 11:28:33 +0100
commit5b759293e09a062373d4b2843c5bad89d5a47165 (patch)
treec1aed3aa878e6d52bb0215343e5310e24a78cb39 /lib/modules.nix
parent025eae1a8cf6abdb6bae51c9c3406cb36356608f (diff)
downloadnixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar.gz
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar.bz2
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar.lz
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar.xz
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.tar.zst
nixpkgs-5b759293e09a062373d4b2843c5bad89d5a47165.zip
modules lib: type description in type error message
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 256d49ba27d..4eee41306cd 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -326,7 +326,7 @@ rec {
     # Type-check the remaining definitions, and merge them.
     mergedValue = foldl' (res: def:
       if type.check def.value then res
-      else throw "The option value `${showOption loc}' in `${def.file}' is not a ${type.name}.")
+      else throw "The option value `${showOption loc}' in `${def.file}' is not a ${type.description}.")
       (type.merge loc defsFinal) defsFinal;
 
     isDefined = defsFinal != [];