mirror of
https://github.com/NixOS/nix
synced 2025-07-08 15:13:55 +02:00
Merge pull request #5234 from kvtb/patch-4
builtins.fetchurl: fix error message
This commit is contained in:
commit
edf511dfb2
1 changed files with 1 additions and 1 deletions
|
@ -2079,7 +2079,7 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
|
||||||
else if (n == "name")
|
else if (n == "name")
|
||||||
request.name = state.forceStringNoCtx(*attr.value, *attr.pos);
|
request.name = state.forceStringNoCtx(*attr.value, *attr.pos);
|
||||||
else
|
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())
|
if (request.uri.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue