mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-06 00:57:50 +02:00
error is coming back nil sometimes
this does not fix the root issue that is causing a nil error
This commit is contained in:
@@ -340,6 +340,9 @@ func (e *Error) Error() string {
|
||||
} else {
|
||||
msgs := []string{}
|
||||
for i, err := range e.Errors {
|
||||
if err == nil {
|
||||
continue
|
||||
}
|
||||
msgs = append(msgs, fmt.Sprintf("err %d: %v", i, err.Error()))
|
||||
}
|
||||
cause = fmt.Sprintf("%d errors:\n%s", len(e.Errors), strings.Join(msgs, "\n"))
|
||||
|
||||
Reference in New Issue
Block a user