Skip to content

Commit 1c5a557

Browse files
committed
Minor changes
1 parent cb10302 commit 1c5a557

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/RollbackCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
4343

4444
try {
4545
if (!$updater->rollback()) {
46-
$output->write('Failure!');
46+
$output->writeln('Failure!');
4747
} else {
48-
$output->write('Success!');
48+
$output->writeln('Success!');
4949
}
5050
} catch (\Exception $e) {
51-
$output->write('Well, something happened! Either an oopsie or something involving hackers.');
51+
$output->writeln('Something went wrong during the rollback process. Maybe the old version does not exist anymore.');
5252
}
5353
}
5454
}

src/UpdateCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
4848
if ($result) {
4949
$new = $updater->getNewVersion();
5050
$old = $updater->getOldVersion();
51-
$output->write(sprintf('Updated from %s to %s', $old, $new));
51+
$output->writeln(sprintf('Updated from %s to %s', $old, $new));
5252
} else {
53-
$output->write('Already up-to-date.');
53+
$output->writeln('Already up-to-date.');
5454
}
5555
} catch (\Exception $e) {
56-
$output->write('Something went wrong during the update.');
56+
$output->writeln('Something went wrong during the update.');
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)