1 Commits

Author SHA1 Message Date
ad6d42b35c added Error.Message method 2023-07-27 17:12:33 +02:00

View File

@ -66,6 +66,10 @@ func (e *Error) Error() string {
return b.String()
}
func (e *Error) Message() string {
return e.msg
}
// Is implements the error equality function used by errors.Is()
// It returns true if the error is the same instance or is created using the same ErrTmpl
func (e *Error) Is(target error) bool {