aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-05 21:19:04 +0100
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-05 21:19:04 +0100
commit1b5a8db148dd4403c64bc058ce1a4a5e46d52031 (patch)
tree168dc983dc3c6fc3c29b300541ad2cf4492b9cba /src
parent407801592719d77fcdad53b447e909e3ab255086 (diff)
change error location for genericClosure operator errors
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
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. */