code: func PrintErrorWithCauses(err error, errOut io.Writer) bool {
  	switch t := err.(type) {
  	case *kerrors.StatusError:
  		errorDetails := t.Status().Details
  		if errorDetails != nil {
  			fmt.Fprintf(errOut, "error: %s %q is invalid\n\n", errorDetails.Kind, errorDetails.Name)
  			for _, cause := range errorDetails.Causes {
  				fmt.Fprintf(errOut, "* %s: %s\n", cause.Field, cause.Message)
  			}
  			return true
  		}
  	}
  
  	fmt.Fprintf(errOut, "error: %v\n", err)
  	return false
  }
docs: // PrintErrorWithCauses prints an error's kind, name, and each of the error's causes in a new line.
  // The returned string will end with a newline.
  // Returns true if a case exists to handle the error type, or false otherwise.