hostutil: disable host info collection on openbsd (#7699)

This commit is contained in:
Calvin Leung Huang
2019-10-18 12:08:35 -07:00
committed by GitHub
parent afcba41190
commit 3e97f5cf62
3 changed files with 40 additions and 14 deletions

View File

@@ -0,0 +1,17 @@
package hostutil
import "fmt"
// HostInfoError is a typed error for more convenient error checking.
type HostInfoError struct {
Type string
Err error
}
func (e *HostInfoError) WrappedErrors() []error {
return []error{e.Err}
}
func (e *HostInfoError) Error() string {
return fmt.Sprintf("%s: %s", e.Type, e.Err.Error())
}