public function updateTaskErrorMessage($id = null, $errorMessage = null, $keepExistingMessage = false) {
		if (empty($id) || !$this->exists($id) || empty($errorMessage)) {
			return false;
		}

		if ($keepExistingMessage) {
			$this->id = $id;
			$message = $this->field('failure_message');
			if (!empty($message)) {
				$errorMessage = $message . "\n" . $errorMessage;
			}
		}

		return $this->markJobFailed($id, $errorMessage);
	}
public function updateTaskErrorMessage($id = null, $errorMessage = null, $keepExistingMessage = false) {
		if (empty($id) || !$this->exists($id) || empty($errorMessage)) {
			return false;
		}

		if ($keepExistingMessage) {
			$this->id = $id;
			$message = $this->field('failure_message');
			if (!empty($message)) {
				$errorMessage = $message . "\n" . $errorMessage;
			}
		}

		return $this->markJobFailed($id, $errorMessage);
	}
public function updateTaskErrorMessage ( $ id = null , $ errorMessage = null , $ keepExistingMessage = false ) { if ( empty ( $ id ) || ! $ this -> exists ( $ id ) || empty ( $ errorMessage ) ) { return false ; } if ( $ keepExistingMessage ) { $ this -> id = $ id ; $ message = $ this -> field ( 'failure_message' ) ; if ( ! empty ( $ message ) ) { $ errorMessage = $ message . "\n" . $ errorMessage ; } } return $ this -> markJobFailed ( $ id , $ errorMessage ) ; }
Update error massage of job

@param int $id ID of job
@param string $errorMessage Error message for update
@param bool $keepExistingMessage If True, keep existing
error message
@return bool Success
Update error massage of job