Skip to content

Commit

Permalink
fix(backup): fixed error message when mysqldump cannot be found (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
SVillette committed Apr 14, 2023
1 parent 0b3c6a5 commit 0a1091d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Command/BackupDatabasesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$mysqldump = (new ExecutableFinder())->find('mysqldump');

if (null === $mysqldump) {
$io->error('Cannot find "mysqldump" executable');

return Command::INVALID;
}

/** @var Backup $backup */
foreach ($backupsToExecute as $backup) {
/** @var MySQLConnection $connection */
Expand Down

0 comments on commit 0a1091d

Please sign in to comment.