Merge pull request #5398 from kamadorueda/master

fetch: nicer infinite recursion errors
This commit is contained in:
Domen Kožar 2021-10-17 20:55:36 -05:00 committed by GitHub
commit 623514bf9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {