0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-12-22 19:38:28 +00:00
crazy-max_diun/vendor/github.com/gregdel/pushover/errors.go
2024-12-14 22:30:21 +01:00

19 lines
289 B
Go

package pushover
import (
"strings"
)
// Errors represents the errors returned by pushover.
type Errors []string
// Error represents the error as a string.
func (e Errors) Error() string {
ret := ""
if len(e) > 0 {
ret = "Errors:\n"
ret += strings.Join(e, "\n")
}
return ret
}