aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2020-04-30 10:33:12 +0200
committerGitHub <noreply@github.com>2020-04-30 10:33:12 +0200
commitdf8e9d691c93ed800c0b1885d5cda70b058ace24 (patch)
treec9db177e7ed87a967daeb4ef3fd9acfd1e0be9b4 /src
parentaeb406dd1bb4a0cf270b64c877b3d22c25d5358a (diff)
parentd1229859c2612587bfd04111bae6584c0c9df051 (diff)
Merge pull request #3548 from Ma27/fetchtarball-pos
Fix displaying error-position in `builtins.fetch{Tree,Tarball}`
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops/fetchTree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc
index 43c58485a..c5a0d9886 100644
--- a/src/libexpr/primops/fetchTree.cc
+++ b/src/libexpr/primops/fetchTree.cc
@@ -108,7 +108,7 @@ static void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
name = state.forceStringNoCtx(*attr.value, *attr.pos);
else
throw EvalError("unsupported argument '%s' to '%s', at %s",
- attr.name, who, attr.pos);
+ attr.name, who, *attr.pos);
}
if (!url)