Revision c74df714d4f603884788205f46ac73d5beca813b authored by William Banfield on 21 March 2022, 20:37:37 UTC, committed by William Banfield on 21 March 2022, 20:37:37 UTC
1 parent 1d2858f
errors_p2p.go
package types
import (
"fmt"
)
//-------------------------------------------------------------------
type ErrNetAddressNoID struct {
Addr string
}
func (e ErrNetAddressNoID) Error() string {
return fmt.Sprintf("address (%s) does not contain ID", e.Addr)
}
type ErrNetAddressInvalid struct {
Addr string
Err error
}
func (e ErrNetAddressInvalid) Error() string {
return fmt.Sprintf("invalid address (%s): %v", e.Addr, e.Err)
}
type ErrNetAddressLookup struct {
Addr string
Err error
}
func (e ErrNetAddressLookup) Error() string {
return fmt.Sprintf("error looking up host (%s): %v", e.Addr, e.Err)
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...