Fix displaying error-position in builtins.fetch{Tree,Tarball}

Without dereferencing this pointer, you'd get an error like this:

```
error: unsupported argument 'abc' to 'fetchTarball', at 0x13627e8
```
This commit is contained in:
Maximilian Bosch 2020-04-29 22:48:29 +02:00
parent 06849c3090
commit d1229859c2
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

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)