Permalink
Browse files

MultiError: add new lines between errors

  • Loading branch information...
Morganamilo committed Aug 18, 2018
1 parent a1edd09 commit a8e4f18e6bbe90d403e0113ef83fbf185bba064c
Showing with 2 additions and 2 deletions.
  1. +2 −2 utils.go
View
@@ -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) {

0 comments on commit a8e4f18

Please sign in to comment.