Skip to content

Commit 729e8c7

Browse files
committed
Include whole exception on NotificationFailed event #19
1 parent 7178163 commit 729e8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwilioChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function send($notifiable, Notification $notification)
5858
return $this->twilio->sendMessage($message, $to, $useSender);
5959
} catch (Exception $exception) {
6060
$this->events->fire(
61-
new NotificationFailed($notifiable, $notification, 'twilio', ['message' => $exception->getMessage()])
61+
new NotificationFailed($notifiable, $notification, 'twilio', ['message' => $exception->getMessage(), 'exception' => $exception])
6262
);
6363
}
6464
}

0 commit comments

Comments
 (0)