* 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;
decl =
addOptionMakeUp
{ name = addName name; recurseInto = recurseForOption; }
(mergeOptionDecls decls);
lib.addErrorContext "${eol
}while enhancing option '${addName name}'.${eol
}${errorSource declarations}${eol
}" (
addOptionMakeUp
{ name = addName name; recurseInto = recurseForOption; }
(mergeOptionDecls decls)
);
value = decl // (with config; {
inherit (config) isNotDefined;