Skip to content

Commit af70eea

Browse files
replaced exception to throwable
1 parent 5dfed5a commit af70eea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Database/Database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Utopia\Database;
44

55
use Exception;
6+
use Throwable;
67
use Utopia\Cache\Cache;
78
use Utopia\CLI\Console;
89
use Utopia\Database\Exception as DatabaseException;
@@ -5892,8 +5893,8 @@ public function deleteDocuments(
58925893
}
58935894
try {
58945895
$onNext && $onNext($document);
5895-
} catch (Exception $e) {
5896-
$onError ? $onError($e) : throw $e;
5896+
} catch (Throwable $th) {
5897+
$onError ? $onError($th) : throw $th;
58975898
}
58985899
$modified++;
58995900
}

0 commit comments

Comments
 (0)