Remove redundant SMTP test error toast on the admin UI.

This commit is contained in:
Kailash Nadh 2024-01-27 20:41:07 +05:30
parent 45f4ae190f
commit f0a3cbd563

View file

@ -299,7 +299,6 @@ func handleTestSMTPSettings(c echo.Context) error {
m.Subject = app.i18n.T("settings.smtp.testConnection") m.Subject = app.i18n.T("settings.smtp.testConnection")
m.Body = b.Bytes() m.Body = b.Bytes()
if err := msgr.Push(m); err != nil { if err := msgr.Push(m); err != nil {
app.log.Printf("error sending SMTP test (%s): %v", m.Subject, err)
return echo.NewHTTPError(http.StatusInternalServerError, err.Error()) return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
} }