Merge pull request #3548 from Ma27/fetchtarball-pos

Fix displaying error-position in `builtins.fetch{Tree,Tarball}`
This commit is contained in:
Domen Kožar 2020-04-30 10:33:12 +02:00 committed by GitHub
commit df8e9d691c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ static void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
name = state.forceStringNoCtx(*attr.value, *attr.pos);
else
throw EvalError("unsupported argument '%s' to '%s', at %s",
attr.name, who, attr.pos);
attr.name, who, *attr.pos);
}
if (!url)