Skip to content

Commit

Permalink
Merge pull request #3548 from Ma27/fetchtarball-pos
Browse files Browse the repository at this point in the history
Fix displaying error-position in `builtins.fetch{Tree,Tarball}`
  • Loading branch information
domenkozar authored Apr 30, 2020
2 parents aeb406d + d122985 commit df8e9d6
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 df8e9d6

Please sign in to comment.