Dawid Wysokiński
56dc421bd0
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
240 B
Go
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
|
|
}
|