Skip to content

Commit

Permalink
Show error message if a reverted migration is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Aug 10, 2017
1 parent f0d417b commit e69ef7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/Migrations/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ protected function rollbackMigrations(array $migrations, $paths, array $options)
$migration = (object) $migration;

if (! $file = Arr::get($files, $migration->migration)) {
$this->note("<fg=red>Can't find class to rollback for migration</> {$migration->migration}");
continue;
}

Expand Down

0 comments on commit e69ef7a

Please sign in to comment.