File: errors.go

package info (click to toggle)
kubecolor 0.0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 352 kB
  • sloc: makefile: 13
file content (11 lines) | stat: -rw-r--r-- 172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
package command

import "fmt"

type KubectlError struct {
	ExitCode int
}

func (ke *KubectlError) Error() string {
	return fmt.Sprintf("kubectl error: %d", ke.ExitCode)
}