fix: do not panic on invalid yaml (#314)

Fixes #311
This commit is contained in:
KUOKA Yusuke 2018-09-08 02:15:39 +09:00 committed by GitHub
parent c3934495fe
commit 8f96f0aff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -580,6 +580,8 @@ func findAndIterateOverDesiredStates(fileOrDir string, converge func(*state.Helm
switch stateLoadErr.Cause.(type) {
case *state.UndefinedEnvError:
noTarget = true
default:
return err
}
default:
return err