about summary refs log tree commit diff
path: root/pkgs/lib/types.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/lib/types.nix')
-rw-r--r--pkgs/lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/types.nix b/pkgs/lib/types.nix
index b62c08f3af518..f9a195a80ba38 100644
--- a/pkgs/lib/types.nix
+++ b/pkgs/lib/types.nix
@@ -166,7 +166,7 @@ rec {
         if length list == 1 then
           head list
         else
-          throw "Multiple definitions. Only one is allowed for this option.";
+          throw "Multiple definitions of ${elemType.name}. Only one is allowed for this option.";
     };
 
     none = elemType: mkOptionType {