mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
gc: join multiple errors with "; " instead of a newline
otherwise the daemon will only display the first error License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
@ -130,7 +130,7 @@ func (e *MultiError) Error() string {
|
||||
var buf bytes.Buffer
|
||||
for _, err := range e.Errors {
|
||||
buf.WriteString(err.Error())
|
||||
buf.WriteString("\n")
|
||||
buf.WriteString("; ")
|
||||
}
|
||||
buf.WriteString(e.Summary.Error())
|
||||
return buf.String()
|
||||
|
Reference in New Issue
Block a user