From 6de4f2d133888ff0c0d078a3783777a28d274fb1 Mon Sep 17 00:00:00 2001 From: Felix Bernhard Date: Fri, 22 Aug 2025 14:09:30 +0200 Subject: [PATCH] fix multi-line error message format --- bin/rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);