mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Throw
This commit is contained in:
parent
3a4fb5dd14
commit
b6e8b55994
1 changed files with 2 additions and 6 deletions
|
|
@ -111,7 +111,7 @@ class Migrations extends Action
|
|||
$migration = new Document($payload['migration'] ?? []);
|
||||
|
||||
if ($migration->isEmpty()) {
|
||||
throw new Exception('Missing migration');
|
||||
throw new \Exception('Migration not found');
|
||||
}
|
||||
|
||||
if ($project->getId() === 'console') {
|
||||
|
|
@ -119,7 +119,7 @@ class Migrations extends Action
|
|||
}
|
||||
|
||||
if ($project->isEmpty()) {
|
||||
throw new Exception('Missing project');
|
||||
throw new \Exception('Project not found');
|
||||
}
|
||||
|
||||
$this->dbForProject = $dbForProject;
|
||||
|
|
@ -322,10 +322,6 @@ class Migrations extends Action
|
|||
): void {
|
||||
$project = $this->project;
|
||||
|
||||
if ($project->isEmpty()) {
|
||||
throw new \Exception("Project not found");
|
||||
}
|
||||
|
||||
$tempAPIKey = $this->generateAPIKey($project);
|
||||
|
||||
$transfer = $source = $destination = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue