about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2013-08-22 09:50:25 +0300
committerEvgeny Egorochkin <phreedom@yandex.ru>2013-08-22 09:50:25 +0300
commit983c87a1dd371044c3e7ff0e8e662353094ddcc1 (patch)
treef0fc56edf1784cf511098e67847da8f580b57da5 /pkgs
parentfd803fce606a007403ba6d05f09ed2e6a3371830 (diff)
downloadnixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar.gz
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar.bz2
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar.lz
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar.xz
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.tar.zst
nixlib-983c87a1dd371044c3e7ff0e8e662353094ddcc1.zip
Improve the error message for uniq option type.
Diffstat (limited to 'pkgs')
-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 b62c08f3af51..f9a195a80ba3 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 {