mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 04:52:35 +02:00
fix error formatting
This commit is contained in:
parent
1871ef3d38
commit
f997423fd7
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)...)
|
||||
}
|
||||
return strutils.JoinLines(lines)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue