mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-31 00:52:35 +02:00
fix error formatting
This commit is contained in:
parent
c90e0db30d
commit
199a4bb876
1 changed files with 3 additions and 1 deletions
|
@ -75,8 +75,10 @@ func (err *nestedError) Error() string {
|
|||
lines := make([]string, 0, 1+len(err.Extras))
|
||||
if err.Err != nil {
|
||||
lines = append(lines, makeLine(err.Err.Error(), 0))
|
||||
lines = append(lines, makeLines(err.Extras, 1)...)
|
||||
} else {
|
||||
lines = append(lines, makeLines(err.Extras, 0)...)
|
||||
}
|
||||
lines = append(lines, makeLines(err.Extras, 1)...)
|
||||
return strutils.JoinLines(lines)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue