mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
Adds handling for more region errors in Telnyx (#639)
This commit is contained in:
parent
1d02605099
commit
30bde64257
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ export default class TelnyxTextProvider extends TextProvider {
|
|||
if (error?.code === '40300') {
|
||||
// Unable to send because recipient has unsubscribed
|
||||
throw new UnsubscribeTextError(this.type, to, error.title)
|
||||
} else if (error?.code === '40008') {
|
||||
} else if (error?.code === '40008' || error?.code === '40301') {
|
||||
// Unable to send because region is not enabled
|
||||
throw new UndeliverableTextError(this.type, to, error.title)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue