Merge pull request #9928 from 9999years/error-messages-in-nix-repl

Improve error printing in `nix repl`

(cherry picked from commit a8050d9b83052e4b5c52bf2d116381aedec3a93e)
Change-Id: I588f92d1dd4c546c98788b71403cc034f5e7129a
This commit is contained in:
eldritch horrors
2024-03-09 03:37:35 -07:00
parent c864923928
commit 7673312ccc
3 changed files with 45 additions and 41 deletions
+1 -1
View File
@@ -407,7 +407,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;
}