code: func TruncatingErrorf(str string, args ...interface{}) error {
  	n := strings.Count(str, "%s")
  	return fmt.Errorf(str, args[:n]...)
  }
docs: // TruncatingErrorf removes extra args from fmt.Errorf if not formatted in the str object