summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sms-service/src/preload/preload.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sms-service/src/preload/preload.go b/sms-service/src/preload/preload.go
index 2e654fa..7e54fb8 100644
--- a/sms-service/src/preload/preload.go
+++ b/sms-service/src/preload/preload.go
@@ -189,6 +189,10 @@ func (c *smsClient) createDomain(domain string) error {
url := "/v1/sms/domain"
err := c.sendPostRequest(url, message)
if err != nil {
+ if strings.Contains(err.Error(), "existing domain") {
+ fmt.Println("Domain ", domain, " already exists...")
+ return nil
+ }
return pkgerrors.Cause(err)
}
return nil