mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-10 01:14:04 +00:00
Update README.md
Missing `err.errtype` when returning `Error`
This commit is contained in:
parent
baaaa4e6cc
commit
6ee2e5bef7
|
@ -754,7 +754,7 @@ func NewErrorDetails(err error, details ...interface{}) ErrorDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (err *errDetails) Error() string {
|
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 {
|
func (err *errDetails) Type() error {
|
||||||
|
|
Loading…
Reference in a new issue