mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 09:33:11 +00:00
Catch subscription confirmation email errors
This commit is contained in:
parent
2a496bd000
commit
d7d44cb4e1
1 changed files with 5 additions and 1 deletions
6
email.go
6
email.go
|
@ -159,7 +159,11 @@ func handleCreateEmailSubscription(app *App, w http.ResponseWriter, r *http.Requ
|
|||
|
||||
// Send confirmation email if needed
|
||||
if !confirmed {
|
||||
sendSubConfirmEmail(app, c, ss.Email, es.ID, es.Token)
|
||||
err = sendSubConfirmEmail(app, c, ss.Email, es.ID, es.Token)
|
||||
if err != nil {
|
||||
log.Error("Failed to send subscription confirmation email: %s", err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if ss.Web {
|
||||
|
|
Loading…
Reference in a new issue