mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Merge pull request #9928 from 9999years/error-messages-in-nix-repl
Improve error printing in `nix repl`
This commit is contained in:
commit
a8050d9b83
3 changed files with 45 additions and 41 deletions
|
@ -409,7 +409,7 @@ private:
|
|||
{
|
||||
if (options.ansiColors)
|
||||
output << ANSI_RED;
|
||||
output << "«" << e.msg() << "»";
|
||||
output << "«error: " << filterANSIEscapes(e.info().msg.str(), true) << "»";
|
||||
if (options.ansiColors)
|
||||
output << ANSI_NORMAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue