blob: 58d97c96e871c53055097caac4f4813fb62a789c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package longpoll
import (
"fmt"
)
// Failed struct.
type Failed struct {
Code int
}
// Error returns the message of a Failed.
func (e Failed) Error() string {
return fmt.Sprintf(
"longpoll: failed code %d",
e.Code,
)
}
|