Catch subscription confirmation email errors

pull/478/head
Matt Baer 1 year ago
parent 2a496bd000
commit d7d44cb4e1
  1. 6
      email.go

@ -159,7 +159,11 @@ func handleCreateEmailSubscription(app *App, w http.ResponseWriter, r *http.Requ
// Send confirmation email if needed // Send confirmation email if needed
if !confirmed { 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 { if ss.Web {

Loading…
Cancel
Save