This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
core-old/internal/tw/parse_error.go
Dawid Wysokiński 56dc421bd0
All checks were successful
continuous-integration/drone/push Build is passing
refactor(tw): improve test quality & refactor ParseError
2023-02-26 08:42:02 +01:00

16 lines
240 B
Go

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
}