mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Forbid nested debuggers
This commit is contained in:
parent
4ee5433919
commit
14b0356dc5
4 changed files with 20 additions and 11 deletions
|
@ -336,13 +336,7 @@ ReplExitStatus NixRepl::mainLoop()
|
|||
printMsg(lvlError, e.msg());
|
||||
}
|
||||
} catch (EvalError & e) {
|
||||
// in debugger mode, an EvalError should trigger another repl session.
|
||||
// when that session returns the exception will land here. No need to show it again;
|
||||
// show the error for this repl session instead.
|
||||
if (state->debugRepl && !state->debugTraces.empty())
|
||||
showDebugTrace(std::cout, state->positions, state->debugTraces.front());
|
||||
else
|
||||
printMsg(lvlError, e.msg());
|
||||
printMsg(lvlError, e.msg());
|
||||
} catch (Error & e) {
|
||||
printMsg(lvlError, e.msg());
|
||||
} catch (Interrupted & e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue