diff --git a/bin/rector.php b/bin/rector.php index 9e58f3a05aa..5860ed1b7d0 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -147,7 +147,7 @@ public function loadIfExistsAndNotLoadedYet(string $filePath): void // report fatal errors in console format $symfonyStyleFactory = new SymfonyStyleFactory(new PrivatesAccessor()); $symfonyStyle = $symfonyStyleFactory->create(); - $symfonyStyle->error($throwable->getMessage()); + $symfonyStyle->error(str_replace("\r\n", "\n", $throwable->getMessage())); } exit(Command::FAILURE);