builtins.fetchurl: fix error message

fixes `error: unsupported argument 'path' to 'fetchurl', at 0x1630b48`
This commit is contained in:
kvtb 2021-09-11 04:54:55 +00:00 committed by GitHub
parent 72128074d8
commit 7d92204b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2079,7 +2079,7 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
else if (n == "name")
request.name = state.forceStringNoCtx(*attr.value, *attr.pos);
else
throw EvalError(format("unsupported argument '%1%' to '%2%', at %3%") % attr.name % who % attr.pos);
throw EvalError(format("unsupported argument '%1%' to '%2%', at %3%") % attr.name % who % *attr.pos);
}
if (request.uri.empty())