multierror update, fix output

This commit is contained in:
brent s. 2021-12-24 05:50:31 -05:00
parent 3f4db5e82c
commit 9d3299c9dc
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -1,7 +1,7 @@
package gosecret package gosecret


import ( import (
`fmt` "fmt"
) )


/* /*
@ -47,7 +47,7 @@ func (e *MultiError) Error() (errStr string) {


for idx, err := range e.Errors { for idx, err := range e.Errors {
if (idx + 1) < numErrs { if (idx + 1) < numErrs {
errStr += fmt.Sprintf(err.Error(), e.ErrorSep) errStr += fmt.Sprintf("%v%v", err.Error(), e.ErrorSep)
} else { } else {
errStr += err.Error() errStr += err.Error()
} }