aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2022-01-08 11:03:48 -0700
committerBen Burdette <bburdette@gmail.com>2022-01-08 11:03:48 -0700
commita963674d88f2f1af6181f126ed4288ec65b61fc6 (patch)
treeff9f0c5b4aa339f946181724a2cdfa0bc2d04488 /src/libcmd/repl.cc
parentc51b527c280ee08b3ce3ca6d229139c4292b3176 (diff)
optinoal error; compiles
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index fdd63621f..e66cf4430 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -917,19 +917,23 @@ void runRepl(
{
auto repl = std::make_unique<NixRepl>(evalState);
- repl->debugError = debugError;
+ // repl->debugError = debugError;
repl->initEnv();
- // tack on a final DebugTrace for the error position.
- DebugTraceStacker ldts(
- *evalState,
- DebugTrace
- {.pos = debugError->info().errPos,
- .expr = expr,
- .env = *repl->env,
- .hint = debugError->info().msg
- });
+ // 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;