From 983c87a1dd371044c3e7ff0e8e662353094ddcc1 Mon Sep 17 00:00:00 2001 From: Marc Weber <marco-oweber@gmx.de> Date: Thu, 22 Aug 2013 09:50:25 +0300 Subject: [PATCH] Improve the error message for uniq option type. --- pkgs/lib/types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/lib/types.nix b/pkgs/lib/types.nix index b62c08f3af5..f9a195a80ba 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 {