multierror update, fix output
This commit is contained in:
parent
3f4db5e82c
commit
9d3299c9dc
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user