Better error message
This commit is contained in:
parent
f642fc9ad9
commit
31548c6fbb
@ -2084,7 +2084,7 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
$errorsMsg[] = 'Failed to delete old reminders';
|
$errorsMsg[] = 'Failed to delete old reminders';
|
||||||
$error ++;
|
//$error++; // If this fails, we must not rollback other SQL requests already done. Never mind.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2095,7 +2095,7 @@ class ActionComm extends CommonObject
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
$this->error = (!empty($errorsMsg)) ? join(', ', $errorsMsg) : $error;
|
$this->error = 'Nb of emails sent : '.$nbMailSend.', '.(!empty($errorsMsg)) ? join(', ', $errorsMsg) : $error;
|
||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user