mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
builtins.fetchurl: fix error message
fixes `error: unsupported argument 'path' to 'fetchurl', at 0x1630b48`
This commit is contained in:
parent
72128074d8
commit
7d92204b67
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user