* Report file locations in the stack-trace when multiple option

declarations cannot be merged.

svn path=/nixpkgs/trunk/; revision=18149
This commit is contained in:
Nicolas Pierron 2009-11-05 16:36:03 +00:00
parent d8bbae877a
commit 09bed4bffc

View File

@ -217,9 +217,14 @@ rec {
) declarations; ) declarations;
decl = decl =
addOptionMakeUp lib.addErrorContext "${eol
{ name = addName name; recurseInto = recurseForOption; } }while enhancing option '${addName name}'.${eol
(mergeOptionDecls decls); }${errorSource declarations}${eol
}" (
addOptionMakeUp
{ name = addName name; recurseInto = recurseForOption; }
(mergeOptionDecls decls)
);
value = decl // (with config; { value = decl // (with config; {
inherit (config) isNotDefined; inherit (config) isNotDefined;