Improve the error message for uniq option type.

wip/yesman
Marc Weber 11 years ago committed by Evgeny Egorochkin
parent fd803fce60
commit 983c87a1dd
  1. 2
      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 {

Loading…
Cancel
Save