mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-09 09:51:10 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
21 lines
402 B
Go
21 lines
402 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
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())
|
|
}
|