Skip to content

Commit

Permalink
#141 - Change RuntimeException throw to output warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed May 2, 2023
1 parent 63a86c8 commit 5145bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ public static function run(array $options)
join(PHP_EOL, $migrationsDirList) :
$migrationsDirList;

throw new RuntimeException('Migrations were not found at:' . PHP_EOL . PHP_EOL . $migrationsPath);
echo Color::error('Migrations were not found at:' . $migrationsPath, 'Warning: ');
return;
}

// Set default final version
Expand Down

0 comments on commit 5145bb8

Please sign in to comment.