aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-16 14:31:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-16 14:31:55 -0700
commit751bb12a9612c092541a63db72eb9ecc5eb1c4bd (patch)
tree6ef7a40a5def78f6d190672e902964eee827f420 /src
parentf4ee46e8395228cdcb1d5f7f2ac8b4ebd955b07f (diff)
downloadzig-751bb12a9612c092541a63db72eb9ecc5eb1c4bd.tar.gz
zig-751bb12a9612c092541a63db72eb9ecc5eb1c4bd.zip
stage2: fix error message coloring
After 7a4b53fdee89f2d61cedbb3cef3bda24dacf2a57, bold no longer changes the color back, so we need an extra reset.
Diffstat (limited to 'src')
-rw-r--r--src/Compilation.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 20e3bfa1c8..0f1cfd13c6 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -349,6 +349,7 @@ pub const AllErrors = struct {
ttyconf.setColor(stderr, color);
try stderr.writeByteNTimes(' ', indent);
try stderr.writeAll(kind);
+ ttyconf.setColor(stderr, .Reset);
ttyconf.setColor(stderr, .Bold);
try stderr.print(" {s}\n", .{src.msg});
ttyconf.setColor(stderr, .Reset);