1
0
Fork 0
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:
Théophane Hufschmitt 2024-02-08 16:21:13 +01:00 committed by GitHub
commit a8050d9b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 45 additions and 41 deletions

View file

@ -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;
}