mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
show expr pos if DebugTrace one is noPos
This commit is contained in:
parent
f41c18b221
commit
5cfd038bd8
2 changed files with 6 additions and 4 deletions
|
@ -129,7 +129,7 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
new DebugTraceStacker(
|
||||
*evalState,
|
||||
DebugTrace
|
||||
{.pos = *expr.getPos(),
|
||||
{.pos = (error->info().errPos ? *error->info().errPos : *expr.getPos()),
|
||||
.expr = expr,
|
||||
.env = env,
|
||||
.hint = error->info().msg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue