From 6ee2e5bef755ae7a04d917727ca303e955f2fcd7 Mon Sep 17 00:00:00 2001 From: seaskyways Date: Fri, 28 Jun 2019 12:17:50 +0300 Subject: [PATCH] Update README.md Missing `err.errtype` when returning `Error` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 74c66b3..ca8981d 100644 --- a/README.md +++ b/README.md @@ -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 {