Files
OpenGFW/cmd/errors.go
Mxmilu666 1f39137fcd
All checks were successful
Quality check / Tests (push) Successful in 10m24s
Quality check / Static analysis (push) Successful in 21m0s
first commit
2026-02-01 10:29:12 +08:00

19 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
}