go-sample-webpage/vendor/gopkg.in/mail.v2/errors.go
kekskurse 2d39757d71
Some checks failed
continuous-integration/drone/push Build is failing
Refactory and mail
2021-11-22 23:11:37 +01:00

16 lines
407 B
Go

package mail
import "fmt"
// A SendError represents the failure to transmit a Message, detailing the cause
// of the failure and index of the Message within a batch.
type SendError struct {
// Index specifies the index of the Message within a batch.
Index uint
Cause error
}
func (err *SendError) Error() string {
return fmt.Sprintf("gomail: could not send email %d: %v",
err.Index+1, err.Cause)
}