Skip to content

Commit 49b7b77

Browse files
committed
force the foreground color to white for the error background
1 parent 87c4490 commit 49b7b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/printers/pretty_printer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class PrettyPrinter extends LogPrinter {
2424
static const doubleDivider = '─';
2525
static const singleDivider = '┄';
2626

27+
static final whiteColor = AnsiColor.fg(255);
2728
static final levelColors = {
2829
Level.verbose: AnsiColor.fg(AnsiColor.grey(0.5)),
2930
Level.debug: AnsiColor.none(),
@@ -284,8 +285,7 @@ class PrettyPrinter extends LogPrinter {
284285
for (var line in error.split('\n')) {
285286
buffer.add(
286287
color(verticalLineAtLevel) +
287-
errorColor.resetForeground +
288-
errorColor(line) +
288+
errorColor(whiteColor(line)) +
289289
errorColor.resetBackground,
290290
);
291291
}

0 commit comments

Comments
 (0)