hysteria/app/cmd/errors.go
2023-08-23 16:26:38 -07:00

18 lines
245 B
Go

package cmd
import (
"fmt"
)
type configError struct {
Field string
Err error
}
func (e configError) Error() string {
return fmt.Sprintf("invalid config: %s: %s", e.Field, e.Err)
}
func (e configError) Unwrap() error {
return e.Err
}