From e369450c7e0e14c2a324d01cb1a60fe2d224c053 Mon Sep 17 00:00:00 2001 From: fogelito Date: Wed, 17 Dec 2025 22:04:05 +0200 Subject: [PATCH] Throw Exception --- src/Migration/Sources/Appwrite.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;