mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Add console error
This commit is contained in:
parent
744cf4fbb7
commit
6625d4e4a8
1 changed files with 3 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue