diff options
author | Domen Kožar <domen@dev.si> | 2021-10-17 20:55:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 20:55:36 -0500 |
commit | 623514bf9ee1c50921c22b486f9c7b2304fe768e (patch) | |
tree | 52f1dba51745e9c1c1b97cb79b5d91b385fa55c7 | |
parent | 51c812d6bba414611ff874f90733422a9708f6da (diff) | |
parent | 823dce945a702c9ae51a83098f78e55ed780a223 (diff) |
Merge pull request #5398 from kamadorueda/master
fetch: nicer infinite recursion errors
-rw-r--r-- | src/libexpr/primops/fetchTree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc index 727b661e1..b00a79b7f 100644 --- a/src/libexpr/primops/fetchTree.cc +++ b/src/libexpr/primops/fetchTree.cc @@ -189,7 +189,7 @@ static void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v, std::optional<std::string> url; std::optional<Hash> expectedHash; - state.forceValue(*args[0]); + state.forceValue(*args[0], pos); if (args[0]->type() == nAttrs) { |