1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

make an 'info' level error on break

This commit is contained in:
Ben Burdette 2022-02-14 14:04:34 -07:00
parent 4cffb130e3
commit e761bf0601
2 changed files with 8 additions and 23 deletions

View file

@ -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) {