parameters: (self, task, rc)
return_statement: return e
docstring: Userspace error (non-zero exit code) in run_pexpect subprocess
docstring_summary: Userspace error (non-zero exit code) in run_pexpect subprocess
docstring_tokens: Userspace error ( non - zero exit code ) in run_pexpect subprocess
function: def TaskError(self, task, rc):
          """Userspace error (non-zero exit code) in run_pexpect subprocess"""
          message = "{} encountered an error (rc={}), please see task stdout for details.".format(task.log_format, rc)
          e = self.build_exception(task, message)
          e.rc = rc
          e.awx_task_error_type = "TaskError"
          return e
function_tokens: def TaskError ( self , task , rc ) : message = "{} encountered an error (rc={}), please see task stdout for details." . format ( task . log_format , rc ) e = self . build_exception ( task , message ) e . rc = rc e . awx_task_error_type = "TaskError" return e