fix --local panic in set commands

This commit is contained in:
juanvallejo
2018-06-29 10:36:44 -04:00
parent 98de0729cf
commit e8df247597
6 changed files with 25 additions and 7 deletions

View File

@@ -474,7 +474,8 @@ func (o *EnvOptions) RunEnv() error {
for _, patch := range patches {
info := patch.Info
if patch.Err != nil {
allErrs = append(allErrs, fmt.Errorf("error: %s/%s %v", info.Mapping.Resource, info.Name, patch.Err))
name := info.ObjectName()
allErrs = append(allErrs, fmt.Errorf("error: %s %v\n", name, patch.Err))
continue
}