Catch subscription confirmation email errors

This commit is contained in:
Matt Baer 2023-09-25 15:31:10 -04:00
parent 2a496bd000
commit d7d44cb4e1
1 changed files with 5 additions and 1 deletions

View File

@ -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 {