const (
DefaultErrorExitCode = 1
)
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.