1
0
Fork 0
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:
Eelco Dolstra 2021-09-13 10:00:15 +02:00 committed by GitHub
commit edf511dfb2
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") 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())