mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 00:39:37 +01:00
Make the error cleaner when getFields is misused
This commit is contained in:
parent
d51deeac1c
commit
71650c83c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1308,7 +1308,7 @@ std::vector<Symbol> EvalState::getFields(Value & attrs, const Pos & pos)
|
||||||
return *attrNames;
|
return *attrNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
forceValue(attrs);
|
forceAttrs(attrs);
|
||||||
std::vector<Symbol> res;
|
std::vector<Symbol> res;
|
||||||
for (auto & attr : *attrs.attrs)
|
for (auto & attr : *attrs.attrs)
|
||||||
res.push_back(attr.name);
|
res.push_back(attr.name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue