From c548e3549850f224a232f8a74b5a9e2276070896 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 2 Jan 2023 20:01:28 +0100 Subject: [PATCH] Don't use state.positions[noPos] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This caused traces 'at «none»:0: (source not available)'. --- src/libexpr/primops.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 5142d79e8..9356d307e 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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;