Skip to content

Commit 8644f03

Browse files
committed
- Update error message
1 parent 60a7dab commit 8644f03

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Command/Process/ApplyLocal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function run(InputInterface $input, OutputInterface $output)
8989
$this->printInfo($output, $message);
9090
array_push($appliedPatches, $patch);
9191
} catch (ApplierException $exception) {
92-
$this->printError($output, 'Error: patch conflict happened');
92+
$this->printError($output, 'Error: patch can\'t be applied');
9393
$messages = $this->rollbackProcessor->process($appliedPatches);
9494
$output->writeln($messages);
9595
$errorMessage = sprintf(

src/Patch/Conflict/Processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function process(
7373
array $appliedPatches,
7474
string $exceptionMessage
7575
) {
76-
$errorMessage = 'Error: patch conflict happened';
76+
$errorMessage = 'Error: patch can\'t be applied';
7777
$this->logger->error($errorMessage);
7878
$output->writeln('<error>' . $errorMessage . '</error>');
7979

@@ -84,7 +84,7 @@ public function process(
8484
'Applying patch %s (%s) failed.%s%s',
8585
$patch->getId(),
8686
$patch->getPath(),
87-
PHP_EOL. $exceptionMessage,
87+
PHP_EOL . $exceptionMessage,
8888
$conflictDetails ? PHP_EOL . $conflictDetails : ''
8989
);
9090

src/Test/Unit/Patch/Conflict/ProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testProcess()
9292
$outputMock->expects($this->exactly(2))
9393
->method('writeln')
9494
->withConsecutive(
95-
[$this->stringContains('Error: patch conflict happened')],
95+
[$this->stringContains('Error: patch can\'t be applied')],
9696
[$rollbackMessages]
9797
);
9898

0 commit comments

Comments
 (0)