mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 14:56:15 +02:00
Fix showing attributes in traces
This commit is contained in:
parent
b4c354b013
commit
9a9b03b8d6
1 changed files with 1 additions and 1 deletions
|
@ -1464,7 +1464,7 @@ void ExprSelect::eval(EvalState & state, Env & env, Value & v)
|
||||||
if (pos2) {
|
if (pos2) {
|
||||||
auto pos2r = state.positions[pos2];
|
auto pos2r = state.positions[pos2];
|
||||||
auto origin = std::get_if<SourcePath>(&pos2r.origin);
|
auto origin = std::get_if<SourcePath>(&pos2r.origin);
|
||||||
if (!origin || *origin != state.derivationInternal)
|
if (!(origin && *origin == state.derivationInternal))
|
||||||
state.addErrorTrace(e, pos2, "while evaluating the attribute '%1%'",
|
state.addErrorTrace(e, pos2, "while evaluating the attribute '%1%'",
|
||||||
showAttrPath(state, env, attrPath));
|
showAttrPath(state, env, attrPath));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue