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

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())