1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 11:11:03 -04:00

don't print the 'break' argument

This commit is contained in:
Ben Burdette 2022-05-05 15:34:59 -06:00
parent ce304d0154
commit 09fcfee925

View file

@ -771,12 +771,9 @@ static RegisterPrimOp primop_break({
.fun = [](EvalState & state, const PosIdx pos, Value * * args, Value & v) .fun = [](EvalState & state, const PosIdx pos, Value * * args, Value & v)
{ {
if (debuggerHook && !state.debugTraces.empty()) { if (debuggerHook && !state.debugTraces.empty()) {
PathSet context;
auto s = state.coerceToString(pos, *args[0], context).toOwned();
auto error = Error(ErrorInfo { auto error = Error(ErrorInfo {
.level = lvlInfo, .level = lvlInfo,
.msg = hintfmt("breakpoint reached; value was %1%", s), .msg = hintfmt("breakpoint reached"),
.errPos = state.positions[pos], .errPos = state.positions[pos],
}); });