core/internal/tw/parse_error.go

16 lines
238 B
Go
Raw Normal View History

2023-12-15 07:16:51 +00:00
package tw
type ParseError struct {
Field string
Str string
Err error
}
func (e ParseError) Error() string {
return e.Field + ": parsing '" + e.Str + "': " + e.Err.Error()
}
func (e ParseError) Unwrap() error {
return e.Err
}