aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-08 06:50:31 +0100
committereldritch horrors <pennae@lix.systems>2024-03-09 03:37:35 -0700
commit7673312ccc179825033e4458604ddd2e9ae8d162 (patch)
tree7f81aef04abeef0211030c64f186da3cd0638498 /src
parentc8649239280360877a33c7aacf14889cb441f643 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/print.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/print.cc b/src/libexpr/print.cc
index fbd91e484..86eadfb17 100644
--- a/src/libexpr/print.cc
+++ b/src/libexpr/print.cc
@@ -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;
}