code: def error_text(error, context="client"):
      
      assert context in ("client", "server", "partner")
      logger.debug("error text for %s" % hex(error))
      len_ = 1024
      text_type = c_char * len_
      text = text_type()
      library = load_library()
      if context == "client":
          library.Cli_ErrorText(error, text, len_)
      elif context == "server":
          library.Srv_ErrorText(error, text, len_)
      elif context == "partner":
          library.Par_ErrorText(error, text, len_)
      return text.value
docs: Returns a textual explanation of a given error number
  
      :param error: an error integer
      :param context: server, client or partner
      :returns: the error string