chore(all): wrap all sentinel errors
- Force to use `errors.Is` instead of `==` to compare errors
This commit is contained in:
@@ -25,7 +25,7 @@ func (hts hostToServer) add(data serverData) (err error) {
|
||||
}
|
||||
|
||||
if data.IPv4 == "" && data.IPv6 == "" {
|
||||
return ErrNoIP
|
||||
return fmt.Errorf("%w", ErrNoIP)
|
||||
}
|
||||
|
||||
server, ok := hts[data.Hostname]
|
||||
|
||||
Reference in New Issue
Block a user