From add1325c9b49c24c06b910c5e790be8406067511 Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Thu, 20 Jun 2019 02:09:40 +0900 Subject: [PATCH] fix: incorrect error message when sub-helmfiles-only state missing env Ref https://github.com/roboll/helmfile/issues/704#issuecomment-503647741 --- pkg/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index 6f05e459e..33f8027df 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -282,7 +282,7 @@ func (a *App) visitStates(fileOrDir string, defOpts LoadOpts, converge func(*sta case *state.StateLoadError: switch stateLoadErr.Cause.(type) { case *state.UndefinedEnvError: - return nil + return stateLoadErr default: return ctx.wrapErrs(err) }