Skip to content

Commit a635cbd

Browse files
committed
force the foreground color to white for the error background
1 parent 77109cc commit a635cbd

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
@@ -25,6 +25,7 @@ class PrettyPrinter extends LogPrinter {
2525
static const doubleDivider = '─';
2626
static const singleDivider = '┄';
2727

28+
static final whiteColor = AnsiColor.fg(255);
2829
static final levelColors = {
2930
Level.verbose: AnsiColor.fg(AnsiColor.grey(0.5)),
3031
Level.debug: AnsiColor.none(),
@@ -312,8 +313,7 @@ class PrettyPrinter extends LogPrinter {
312313
for (var line in error.split('\n')) {
313314
buffer.add(
314315
color(verticalLineAtLevel) +
315-
errorColor.resetForeground +
316-
errorColor(line) +
316+
errorColor(whiteColor(line)) +
317317
errorColor.resetBackground,
318318
);
319319
}

0 commit comments

Comments
 (0)