Merge pull request #80919 from hercules-ci/modules-add-file-context

lib/modules.nix: Add file context to unmerged values in mergeDefinitions
This commit is contained in:
Robert Hensing 2020-03-05 23:21:02 +01:00 committed by GitHub
commit 99a2910733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,7 +389,7 @@ rec {
let
# Process mkMerge and mkIf properties.
defs' = concatMap (m:
map (value: { inherit (m) file; inherit value; }) (dischargeProperties m.value)
map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
) defs;
# Process mkOverride properties.