mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Attach pos to if expression errors
This commit is contained in:
parent
74f94d6640
commit
a693a9fa4b
3 changed files with 4 additions and 3 deletions
|
@ -1256,7 +1256,7 @@ void ExprWith::eval(EvalState & state, Env & env, Value & v)
|
|||
|
||||
void ExprIf::eval(EvalState & state, Env & env, Value & v)
|
||||
{
|
||||
(state.evalBool(env, cond) ? then : else_)->eval(state, env, v);
|
||||
(state.evalBool(env, cond, pos) ? then : else_)->eval(state, env, v);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue