Skip to content

Commit

Permalink
Merge pull request kubernetes#84006 from yutedz/k-ctrl-del-msg
Browse files Browse the repository at this point in the history
Traverse resources before giving no name error
  • Loading branch information
k8s-ci-robot authored Nov 8, 2019
2 parents 81953bb + a4522bd commit 5cc945a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions staging/src/k8s.io/cli-runtime/pkg/resource/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,10 +824,9 @@ func (b *Builder) visitorResult() *Result {
_, err := b.mappingFor(r)
if err != nil {
return &Result{err: err}
} else {
return &Result{err: fmt.Errorf("resource(s) were provided, but no name, label selector, or --all flag specified")}
}
}
return &Result{err: fmt.Errorf("resource(s) were provided, but no name, label selector, or --all flag specified")}
}
return &Result{err: missingResourceError}
}
Expand Down

0 comments on commit 5cc945a

Please sign in to comment.