mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-28 05:32:01 -08:00
19 lines
230 B
Go
19 lines
230 B
Go
|
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,
|
||
|
)
|
||
|
}
|