Skip to content

Commit

Permalink
Fix displaying error-position in builtins.fetch{Tree,Tarball}
Browse files Browse the repository at this point in the history
Without dereferencing this pointer, you'd get an error like this:

```
error: unsupported argument 'abc' to 'fetchTarball', at 0x13627e8
```
  • Loading branch information
Ma27 committed Apr 29, 2020
1 parent 06849c3 commit d122985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops/fetchTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d122985

Please sign in to comment.