Merge pull request #12088 from thurt/12087-better-error-when-smtp-not-configured

inviting users: show friendlier error message when smtp is not configured
pull/12096/head
Marcus Efraimsson 7 years ago committed by GitHub
commit 1bc94c7d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/api/org_invite.go

@ -74,6 +74,9 @@ func AddOrgInvite(c *m.ReqContext, inviteDto dtos.AddInviteForm) Response {
}
if err := bus.Dispatch(&emailCmd); err != nil {
if err == m.ErrSmtpNotEnabled {
return Error(412, err.Error(), err)
}
return Error(500, "Failed to send email invite", err)
}

Loading…
Cancel
Save