From 983c87a1dd371044c3e7ff0e8e662353094ddcc1 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 22 Aug 2013 09:50:25 +0300 Subject: Improve the error message for uniq option type. --- pkgs/lib/types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/lib') 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 { -- cgit 1.4.1