Files
Mellaris/errors.go
2026-02-05 23:26:56 +05:30

18 lines
293 B
Go

package mellaris
import "fmt"
// ConfigError indicates a configuration issue.
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
}