[Bug fix] Unclear error message: Update users email via API (#35581)

For the following bug:
- #35145

- @noahtalerman: I didn't test/QA the fix myself.
This commit is contained in:
Noah Talerman
2025-11-12 10:35:05 -05:00
committed by GitHub
parent 05a43df309
commit 9a7b42bdb8
+1 -1
View File
@@ -95,7 +95,7 @@ func getFrom(e fleet.Email) (string, error) {
func (m mailService) SendEmail(ctx context.Context, e fleet.Email) error {
if !e.SMTPSettings.SMTPConfigured {
return errors.New("email not configured")
return errors.New("requires that SMTP or SES is configured in order to send verification email")
}
msg, err := getMessageBody(e, getFrom)
if err != nil {