Improve the error message for uniq option type.

This commit is contained in:
Marc Weber 2013-08-22 09:50:25 +03:00 committed by Evgeny Egorochkin
parent fd803fce60
commit 983c87a1dd

View file

@ -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 {