summaryrefslogtreecommitdiffstats
path: root/src/libexpr/primops/fetchTree.cc
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-04-29 22:48:29 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2020-04-29 22:53:39 +0200
commitd1229859c2612587bfd04111bae6584c0c9df051 (patch)
tree8b044a9ac3e369cb07a200157df162265b47a3ba /src/libexpr/primops/fetchTree.cc
parent06849c3090615d85dbba17b674e97dff71bd41bc (diff)
Fix displaying error-position in `builtins.fetch{Tree,Tarball}`
Without dereferencing this pointer, you'd get an error like this: ``` error: unsupported argument 'abc' to 'fetchTarball', at 0x13627e8 ```
Diffstat (limited to 'src/libexpr/primops/fetchTree.cc')
-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)