MultiError: add new lines between errors

This commit is contained in:
morganamilo committed 2018-08-18 17:12:42 +01:00
1 parent a1edd09a52
commit a8e4f18e6b
1 file changed
+2 -2
+2 -2
View File
@@ -139,10 +139,10 @@ func (err *MultiError) Error() string {
str := ""
for _, e := range err.Errors {
str += e.Error()
str += e.Error() + "\n"
}
return str
return str[:len(str)-1]
}
func (err *MultiError) Add(e error) {