mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
Fixed missing error subject
This commit is contained in:
parent
72df9ff3e4
commit
45d4b92fc6
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ func (ne NestedError) buildError(level int, prefix string) error {
|
|||
for _, extra := range ne.extras {
|
||||
res = errors.Join(res, extra.buildError(level+1, "- "))
|
||||
}
|
||||
} else {
|
||||
res = fmt.Errorf("%w%s", res, sb.String())
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue