Skip to content

Commit

Permalink
Merge pull request #4 from datashaman/hotfix/sailthru-client-exception
Browse files Browse the repository at this point in the history
Fix sailthru client exception try/catch
  • Loading branch information
datashaman authored Jun 24, 2019
2 parents 4d50c56 + 34a9013 commit cfeb87e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/SailthruChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Support\Facades\Log;
use NotificationChannels\Sailthru\Events\MessageFailedToSend;
use NotificationChannels\Sailthru\Events\MessageWasSent;
use Sailthru_Client_Exception;

class SailthruChannel
{
Expand Down Expand Up @@ -64,7 +63,7 @@ public function send($notifiable, Notification $notification)
event(new MessageWasSent($message, $response));

return $response;
} catch (Sailthru_Client_Exception $e) {
} catch (\Sailthru_Client_Exception $e) {
event(new MessageFailedToSend($message, $e));

return [];
Expand All @@ -74,7 +73,7 @@ public function send($notifiable, Notification $notification)
/**
* @param SailthruMessage $sailthruMessage
*
* @throws Sailthru_Client_Exception
* @throws \Sailthru_Client_Exception
*
* @return array
*/
Expand All @@ -92,7 +91,7 @@ protected function multiSend(SailthruMessage $sailthruMessage)
/**
* @param SailthruMessage $sailthruMessage
*
* @throws Sailthru_Client_Exception
* @throws \Sailthru_Client_Exception
*
* @return array
*/
Expand Down

0 comments on commit cfeb87e

Please sign in to comment.