diff options
author | Domen Kožar <domen@dev.si> | 2020-04-09 09:45:15 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2020-04-09 09:45:15 +0200 |
commit | a693a9fa4b92df0d3283a9de8b1e968378a026d2 (patch) | |
tree | bb4955e9aa366d4d58794026f9b60ed0725d932e /src/libexpr/eval.cc | |
parent | 74f94d6640b23d04e6a46a2d0851db6393eebfd6 (diff) |
Attach pos to if expression errors
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index b91a021b4..f963a42ca 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -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); } |