From 7d92204b677c637221924b5cae7733ffb97e8690 Mon Sep 17 00:00:00 2001 From: kvtb <76634406+kvtb@users.noreply.github.com> Date: Sat, 11 Sep 2021 04:54:55 +0000 Subject: [PATCH] builtins.fetchurl: fix error message fixes `error: unsupported argument 'path' to 'fetchurl', at 0x1630b48` --- src/libexpr/primops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 9a04432e0..f56fd2d77 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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())