mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
moving towards env in exceptions
This commit is contained in:
parent
030271184f
commit
b6eb38016b
2 changed files with 29 additions and 16 deletions
|
@ -105,7 +105,7 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
if (!evalState) {
|
||||
evalState = std::make_shared<EvalState>(searchPath, getStore());
|
||||
if (startReplOnEvalErrors)
|
||||
debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const std::map<std::string, Value *> & env) {
|
||||
debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const Env & env) {
|
||||
printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error.what());
|
||||
runRepl(evalState, env);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue