Skip to content

Commit 80ef5ba

Browse files
author
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - Unable to send the SMS: Closing direction to the user
1 parent 08b0729 commit 80ef5ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ protected function doSend(MessageInterface $message): SentMessage
123123

124124
$content = $response->toArray(false);
125125

126-
if (isset($content['error'])) {
126+
if (isset($content[''])) {
127+
throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['']['error']], $response);
128+
}
129+
130+
if (isset($content['error']) || isset($content[''])) {
127131
throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['error']], $response);
128132
}
129133

0 commit comments

Comments
 (0)