We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dfed5a commit af70eeaCopy full SHA for af70eea
1 file changed
src/Database/Database.php
@@ -3,6 +3,7 @@
3
namespace Utopia\Database;
4
5
use Exception;
6
+use Throwable;
7
use Utopia\Cache\Cache;
8
use Utopia\CLI\Console;
9
use Utopia\Database\Exception as DatabaseException;
@@ -5892,8 +5893,8 @@ public function deleteDocuments(
5892
5893
}
5894
try {
5895
$onNext && $onNext($document);
- } catch (Exception $e) {
5896
- $onError ? $onError($e) : throw $e;
+ } catch (Throwable $th) {
5897
+ $onError ? $onError($th) : throw $th;
5898
5899
$modified++;
5900
0 commit comments