Files
appwrite/app/controllers/api
Steven Nguyen 4ace8ed027 Replace catching \Exception with \Throwable
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:

} catch (\Exception $e) {
    $deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {

As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
..
2023-10-02 17:02:48 +03:00
2023-10-02 17:02:48 +03:00
2023-10-02 17:02:48 +03:00
2024-02-05 20:25:34 +13:00
2023-12-18 10:11:10 +00:00
2024-01-30 16:09:58 +01:00
2024-02-07 18:08:51 +13:00
2023-12-06 15:10:40 +01:00