Skip to content

Commit 08ef6ce

Browse files
authored
improve table error formatting
1 parent 27f7b21 commit 08ef6ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Command/ErrorFormatter/TableErrorFormatter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ public function formatErrors(
9292
if (str_contains($tip, "\n")) {
9393
$lines = explode("\n", $tip);
9494
foreach ($lines as $line) {
95-
$message .= '💡 ' . ltrim($line, '') . "\n";
95+
$message .= '💡 ' . ltrim($line, '') . "\n";
9696
}
97+
$message = rtrim($message, "\n");
9798
} else {
98-
$message .= '💡 ' . $tip;
99+
$message .= '💡 ' . $tip;
99100
}
100101
}
101102
if (is_string($this->editorUrl)) {

0 commit comments

Comments
 (0)