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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy