mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-10 01:14:04 +00:00
commit
ed66405676
|
@ -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