mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
don't include errpos for addErrorContext
This commit is contained in:
parent
2a39c083dc
commit
3629b0585a
2 changed files with 5 additions and 5 deletions
|
@ -471,8 +471,7 @@ static void prim_addErrorContext(EvalState & state, const Pos & pos, Value * * a
|
|||
v = *args[1];
|
||||
} catch (Error & e) {
|
||||
PathSet context;
|
||||
// TODO: is this right, include this pos?? Test it. esp with LOC.
|
||||
e.addTrace(pos, "%1%", state.coerceToString(pos, *args[0], context));
|
||||
e.addTrace(std::nullopt, state.coerceToString(pos, *args[0], context));
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue