aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-08-24 16:32:54 -0600
committerBen Burdette <bburdette@gmail.com>2021-08-24 16:32:54 -0600
commitbd3b5329f91e6caff387cf361a5c779468f34f88 (patch)
treee1e83311e3e3c530bbed3a1eace61eaade066b95 /src/libcmd
parent4b5f9b35f06754aaf578a2d4b3d730949964ef05 (diff)
print env bindings
Diffstat (limited to 'src/libcmd')
-rw-r--r--src/libcmd/command.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index a32c4a24b..1a59dff77 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -109,6 +109,7 @@ ref<EvalState> EvalCommand::getEvalState()
if (startReplOnEvalErrors)
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());
+ printEnvBindings(env);
auto vm = mapEnvBindings(env);
runRepl(evalState, *vm);
};