code: def set_login_error_prompt(self, error=None):
          
          if error is None:
              self.manual_login_error_re = error
          else:
              self.manual_login_error_re = to_regexs(error)
docs: Defines a pattern that is used to monitor the response of the
          connected host during the authentication procedure.
          If the pattern matches an error is raised.
  
          :type  error: RegEx
          :param error: The pattern that, when matched, causes an error.