Update README.md

Missing `err.errtype` when returning `Error`
This commit is contained in:
seaskyways 2019-06-28 12:17:50 +03:00 committed by GitHub
parent baaaa4e6cc
commit 6ee2e5bef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -754,7 +754,7 @@ func NewErrorDetails(err error, details ...interface{}) ErrorDetails {
}
func (err *errDetails) Error() string {
return fmt.Sprintf("%v: %v", err.details)
return fmt.Sprintf("%v: %v", err.errtype, err.details)
}
func (err *errDetails) Type() error {