Fix incorrect error handling in coolsms SMS driver

This commit is contained in:
Kijin Sung 2024-07-21 22:16:26 +09:00
parent ada6a81d29
commit 0e3d15d887

View file

@ -116,7 +116,7 @@ class CoolSMS extends Base implements \Rhymix\Framework\Drivers\SMSInterface
}
catch (\Nurigo\Exceptions\CoolsmsException $e)
{
$message->errors[] = class_basename($e) . ': ' . $e->getMessage();
$original->addError(class_basename($e) . ': ' . $e->getMessage());
return false;
}
}