diff --git a/core/asynctask.class.inc.php b/core/asynctask.class.inc.php index 73e33dd1d..e48def4c7 100644 --- a/core/asynctask.class.inc.php +++ b/core/asynctask.class.inc.php @@ -230,7 +230,7 @@ abstract class AsyncTask extends DBObject $this->Set('remaining_retries', $this->GetMaxRetries($iErrorCode)); } - $this->Set('last_error', $sErrorMessage); + $this->SetTrim('last_error', $sErrorMessage); $this->Set('last_error_code', $iErrorCode); // Note: can be ZERO !!! $this->Set('last_attempt', time());