mirror of
https://github.com/apernet/OpenGFW.git
synced 2024-11-14 22:39:26 +08:00
19 lines
245 B
Go
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
|
||
|
}
|