Add console error

This commit is contained in:
fogelito 2024-09-30 11:01:01 +03:00
parent 744cf4fbb7
commit 6625d4e4a8

View file

@ -393,10 +393,12 @@ class Migrations extends Action
$this->updateMigrationDocument($migration, $projectDocument);
if ($migration->getAttribute('status', '') === 'failed') {
Console::error('Migration('.$migration->getInternalId().':'.$migration->getId().') failed, Project('.$this->project->getInternalId().':'.$this->project->getId().')');
$destination->error();
$source->error();
throw new Exception('Migration('.$migration->getId().') failed, Project('.$this->project->getId().')');
throw new Exception('Migration failed');
}
}
}