aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-01-02 20:01:28 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-01-02 20:53:58 +0100
commitc548e3549850f224a232f8a74b5a9e2276070896 (patch)
tree02ea09c774f4b792a6ccb886a05272b80d2529d4
parent6b6965238506705382892b14ef22700fc5112c3d (diff)
Don't use state.positions[noPos]
This caused traces 'at «none»:0: (source not available)'.
-rw-r--r--src/libexpr/primops.cc4
1 files 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;