pkgs/top-level/release-attrpaths-superset.nix: Add attrpath to error context (#373669)

authored by Silvan Mosberger and committed by GitHub a94dbc93 2dc744e2

+8 -4
+8 -4
pkgs/top-level/release-attrpaths-superset.nix
··· 151 151 lib.pipe value [ 152 152 (builtins.mapAttrs ( 153 153 name: value: 154 - if excluded-attrnames-at-any-depth.${name} or false then 155 - [ ] 156 - else 157 - (justAttrNames (path ++ [ name ]) value) 154 + builtins.addErrorContext 155 + "while evaluating package set attribute path '${lib.showAttrPath (path ++ [ name ])}'" 156 + ( 157 + if excluded-attrnames-at-any-depth.${name} or false then 158 + [ ] 159 + else 160 + (justAttrNames (path ++ [ name ]) value) 161 + ) 158 162 )) 159 163 builtins.attrValues 160 164 builtins.concatLists