diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index 4216d40..3d8934b 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -166,6 +166,7 @@ public function getDatabasesBatchSize(): int * @return array * * @throws \Exception + * @throws \Throwable */ public function report(array $resources = []): array { @@ -192,9 +193,9 @@ public function report(array $resources = []): array } catch (\Throwable $e) { if ($e->getCode() === 403) { throw new \Exception("Missing required scopes."); - } else { - throw new \Exception($e->getMessage(), previous: $e); } + + throw $e; } $this->previousReport = $report;