Documentation ¶ Index ¶ Constants func CheckErr(w io.Writer, err error, cmdNameBase string) Constants ¶ View Source const ( DefaultErrorExitCode = 1 ) Variables ¶ This section is empty. Functions ¶ func CheckErr ¶ func CheckErr(w io.Writer, err error, cmdNameBase string) CheckErr looks up the appropriate error message and exit status for known errors. It will print the information to the provided io.Writer. If we don't know the error, it delegates to the error handling in cmdutil. Types ¶ This section is empty. Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.