fix --local panic in set commands
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user