Skip to content

Commit a5eb812

Browse files
authored
fix multi-line error message format (#7164)
1 parent 1dafa98 commit a5eb812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function loadIfExistsAndNotLoadedYet(string $filePath): void
147147
// report fatal errors in console format
148148
$symfonyStyleFactory = new SymfonyStyleFactory(new PrivatesAccessor());
149149
$symfonyStyle = $symfonyStyleFactory->create();
150-
$symfonyStyle->error($throwable->getMessage());
150+
$symfonyStyle->error(str_replace("\r\n", "\n", $throwable->getMessage()));
151151
}
152152

153153
exit(Command::FAILURE);

0 commit comments

Comments
 (0)