aboutsummaryrefslogtreecommitdiff
path: root/api/user.go
diff options
context:
space:
mode:
authorjloup <jean-loup.jamet@trainline.com>2018-06-25 22:56:45 +0200
committerjloup <jean-loup.jamet@trainline.com>2018-06-25 22:56:45 +0200
commit574bf1e47f1b611449faa8fa5848ba63dfc7d0e9 (patch)
tree179b4007d1520dd5030a77cb29a1b4b35c9eb17f /api/user.go
parent73bad1e9ec3c0981151ead328b8f955c70f07429 (diff)
downloadFront-574bf1e47f1b611449faa8fa5848ba63dfc7d0e9.tar.gz
Front-574bf1e47f1b611449faa8fa5848ba63dfc7d0e9.tar.zst
Front-574bf1e47f1b611449faa8fa5848ba63dfc7d0e9.zip
Do not return internal error when SMS send fails.v0.0.23
Just log it.
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index b285a20..9fca34c 100644
--- a/api/user.go
+++ b/api/user.go
@@ -115,7 +115,7 @@ func (q SignupQuery) Run() (interface{}, *Error) {
115 if CONFIG.FreeSMSUser != "" { 115 if CONFIG.FreeSMSUser != "" {
116 err := SendSMS(CONFIG.FreeSMSUser, CONFIG.FreeSMSPass, fmt.Sprintf("New user signup '%v'", q.In.Email)) 116 err := SendSMS(CONFIG.FreeSMSUser, CONFIG.FreeSMSPass, fmt.Sprintf("New user signup '%v'", q.In.Email))
117 if err != nil { 117 if err != nil {
118 return nil, NewInternalError(err) 118 log.Error(err)
119 } 119 }
120 } 120 }
121 121