Skip to content

Commit

Permalink
Fix files not found error message
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Jan 16, 2022
1 parent d339425 commit f0b4b5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/IrreversibleMigrationsValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public function __invoke(
$filesCount = count($filePathList);

if ($filesCount === 0) {
$implodedFilePaths = implode(',', $filePathList);
$this->printLine("No migration files found in paths `$implodedFilePaths`");
$this->printLine("No migration files found in paths:");
foreach ($inputPaths as $inputPath) {
$this->printLine('- ' . $inputPath);
}

return self::EXIT_CODE_ERROR;
}
Expand Down

0 comments on commit f0b4b5e

Please sign in to comment.