Improve the error message for uniq option type.
This commit is contained in:
parent
fd803fce60
commit
983c87a1dd
|
@ -166,7 +166,7 @@ rec {
|
||||||
if length list == 1 then
|
if length list == 1 then
|
||||||
head list
|
head list
|
||||||
else
|
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 {
|
none = elemType: mkOptionType {
|
||||||
|
|
Loading…
Reference in New Issue