diff options
author | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-03-05 21:19:04 +0100 |
---|---|---|
committer | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-03-05 21:19:04 +0100 |
commit | 1b5a8db148dd4403c64bc058ce1a4a5e46d52031 (patch) | |
tree | 168dc983dc3c6fc3c29b300541ad2cf4492b9cba /src/libexpr/primops.cc | |
parent | 407801592719d77fcdad53b447e909e3ab255086 (diff) |
change error location for genericClosure operator errors
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index a72d0f12a..fff382c5e 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -684,7 +684,7 @@ static void prim_genericClosure(EvalState & state, const Pos & pos, Value * * ar /* Call the `operator' function with `e' as argument. */ Value res; - state.callFunction(*op->value, 1, &e, res, *op->pos); + state.callFunction(*op->value, 1, &e, res, pos); state.forceList(res, pos, "While evaluating the return value of the `operator` passed to builtins.genericClosure"); /* Add the values returned by the operator to the work set. */ |