* 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:
parent
d8bbae877a
commit
09bed4bffc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user