Skip to content

Commit 6de4f2d

Browse files
authored
fix multi-line error message format
1 parent 1dafa98 commit 6de4f2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)