1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-04-27 14:25:04 +02:00

Merge pull request #313 from chrboesch/colors

Changed error text to bold.
This commit is contained in:
Chris Boesch 2023-05-30 21:54:49 +02:00 committed by GitHub
commit d366a560db
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,7 @@ const ZiglingStep = struct {
const output = trimLines(b.allocator, raw_output) catch @panic("OOM");
const exercise_output = self.exercise.output;
if (!std.mem.eql(u8, output, self.exercise.output)) {
const red = red_dim_text;
const red = red_bold_text;
const reset = reset_text;
// Override the coloring applied by the printError method.
@ -395,7 +395,7 @@ const ZiglingStep = struct {
};
print("\n{s}Edit exercises/{s} and run '{s}' again.{s}\n", .{
red_text, path, cmd, reset_text,
red_bold_text, path, cmd, reset_text,
});
}