mirror of
https://github.com/crazy-max/diun.git
synced 2024-12-22 19:38:28 +00:00
19 lines
289 B
Go
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
|
|
}
|