From 081107bb82f2d7c27d80f5ae0ed888c37508b974 Mon Sep 17 00:00:00 2001 From: Shane Starcher Date: Tue, 14 May 2019 15:51:12 -0700 Subject: [PATCH] error is coming back nil sometimes this does not fix the root issue that is causing a nil error --- pkg/app/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/app/app.go b/pkg/app/app.go index 33511a80..ad5196fd 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -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"))