mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-22 03:30:48 +03:00
13 lines
184 B
Go
13 lines
184 B
Go
package sshchat
|
|
|
|
import "fmt"
|
|
|
|
type multiError []error
|
|
|
|
func (err multiError) Error() string {
|
|
if len(err) == 0 {
|
|
return ""
|
|
}
|
|
return fmt.Sprintf("%d errors: %q", len(err), err)
|
|
}
|