From 5145bb8982eb5dbe81d6f7e68a61bda42c14b2d5 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Tue, 2 May 2023 20:51:27 +0100 Subject: [PATCH] #141 - Change `RuntimeException` throw to output warning message --- src/Migrations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Migrations.php b/src/Migrations.php index 1df4279..782203c 100644 --- a/src/Migrations.php +++ b/src/Migrations.php @@ -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