mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +02:00
forceAttrs: make pos mandatory
This commit is contained in:
parent
1472e045a7
commit
c3896e19d0
8 changed files with 13 additions and 12 deletions
|
@ -336,7 +336,7 @@ Value & AttrCursor::getValue()
|
|||
if (!_value) {
|
||||
if (parent) {
|
||||
auto & vParent = parent->first->getValue();
|
||||
root->state.forceAttrs(vParent);
|
||||
root->state.forceAttrs(vParent, vParent.determinePos(noPos));
|
||||
auto attr = vParent.attrs->get(parent->second);
|
||||
if (!attr)
|
||||
throw Error("attribute '%s' is unexpectedly missing", getAttrPathStr());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue