mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 09:48:32 +02:00
fix: error formatting
This commit is contained in:
@@ -59,6 +59,9 @@ func (b *Builder) Error() Error {
|
||||
if len(b.errs) == 0 {
|
||||
return nil
|
||||
}
|
||||
if len(b.errs) == 1 && b.about == "" {
|
||||
return wrap(b.errs[0])
|
||||
}
|
||||
return &nestedError{Err: New(b.about), Extras: b.errs}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user