[server] Show solution if email fails in user invite

This commit is contained in:
Abhishek Shroff
2025-05-29 12:40:50 +05:30
parent 0e6778e9f9
commit c8cac17a86

View File

@@ -34,6 +34,7 @@ func setupInviteCommand() *cobra.Command {
if b, _ := cmd.Flags().GetBool("no-email"); !b {
if err := mail.SendWelcomeEmail(u); err != nil {
fmt.Println("Use --no-email if you want don't want to try sending the welcome email")
return errors.New("unable to send welcome email: " + err.Error())
}
}