mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
Don't use state.positions[noPos]
This caused traces 'at «none»:0: (source not available)'.
This commit is contained in:
parent
6b69652385
commit
c548e35498
1 changed files with 2 additions and 2 deletions
|
@ -737,7 +737,7 @@ static RegisterPrimOp primop_break({
|
|||
throw Error(ErrorInfo{
|
||||
.level = lvlInfo,
|
||||
.msg = hintfmt("quit the debugger"),
|
||||
.errPos = state.positions[noPos],
|
||||
.errPos = nullptr,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1164,7 +1164,7 @@ static void prim_derivationStrict(EvalState & state, const PosIdx pos, Value * *
|
|||
}
|
||||
|
||||
} catch (Error & e) {
|
||||
e.addTrace(state.positions[noPos],
|
||||
e.addTrace(nullptr,
|
||||
hintfmt("while evaluating the attribute '%1%' of the derivation '%2%'", key, drvName),
|
||||
true);
|
||||
throw;
|
||||
|
|
Loading…
Reference in a new issue