aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-02-14 14:04:34 -0700
committerBen Burdette <bburdette@protonmail.com>2022-02-14 14:04:34 -0700
commite761bf0601a56db26c31891a3433c1319814fffa (patch)
treec750c81b0d3db455ec658687772e35005221cdcf /src/libcmd
parent4cffb130e385bc3f4c5ca0482ad8c4dd22229cfe (diff)
make an 'info' level error on break
Diffstat (limited to 'src/libcmd')
-rw-r--r--src/libcmd/repl.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 51bbbbc57..db88aa9b6 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -931,24 +931,10 @@ void runRepl(
{
auto repl = std::make_unique<NixRepl>(evalState);
- // repl->debugError = debugError;
+ repl->debugError = debugError;
repl->initEnv();
- // auto dts = debugError ?
- // std::unique_ptr<DebugTraceStacker>(
- // // tack on a final DebugTrace for the error position.
- // new DebugTraceStacker(
- // *evalState,
- // DebugTrace
- // {.pos = debugError->info().errPos,
- // .expr = expr,
- // .env = *repl->env,
- // .hint = debugError->info().msg
- // })
- // )
- // : nullptr;
-
// add 'extra' vars.
std::set<std::string> names;
for (auto & [name, value] : extraEnv) {