From 5c2e9861650c6e7034b89b9fc27141d8c7b53ead Mon Sep 17 00:00:00 2001 From: Stanislav Zhuk Date: Sun, 2 Jul 2023 18:32:03 +0300 Subject: [PATCH] Report package errors instead of throwing an exception (#4) --- src/Notifications/SendToSlack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifications/SendToSlack.php b/src/Notifications/SendToSlack.php index d4b6a54..50eb688 100644 --- a/src/Notifications/SendToSlack.php +++ b/src/Notifications/SendToSlack.php @@ -117,7 +117,7 @@ public function send($message): void NotificationFacade::route('slack', $this->to)->notify($this); } catch (Throwable $e) { - throw WebhookSendFail::make($e); + report(WebhookSendFail::make($e)); } }