1
0
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:
Kevin Atkinson
2017-02-23 02:14:09 -05:00
parent f1938f3cbd
commit d7fa05a707

View File

@ -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()