mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2025-04-20 00:03:35 +00:00
Update README.md
Missing `err.errtype` when returning `Error`
This commit is contained in:
parent
baaaa4e6cc
commit
6ee2e5bef7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue