Skip to content

Commit a94dbc9

Browse files
authored
pkgs/top-level/release-attrpaths-superset.nix: Add attrpath to error context (#373669)
2 parents 2dc744e + 205299e commit a94dbc9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pkgs/top-level/release-attrpaths-superset.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,14 @@ let
151151
lib.pipe value [
152152
(builtins.mapAttrs (
153153
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+
)
158162
))
159163
builtins.attrValues
160164
builtins.concatLists

0 commit comments

Comments
 (0)