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:
parent
4cffb130e3
commit
e761bf0601
2 changed files with 8 additions and 23 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue