mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Make a change to visitor to allow it to accept an error, like Go's path walker
This commit is contained in:
@@ -205,7 +205,10 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string
|
||||
}
|
||||
|
||||
// use the default printer for each object
|
||||
return b.Do().Visit(func(r *resource.Info) error {
|
||||
return b.Do().Visit(func(r *resource.Info, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
printer, err := f.PrinterForMapping(cmd, r.Mapping, allNamespaces)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user