Fix missing error message

This commit is contained in:
Laurent Destailleur 2020-12-18 16:31:32 +01:00
parent 0eaf924d3b
commit dc9ac9d298

View File

@ -489,13 +489,15 @@ if ($ispaymentok)
if (!$resql)
{
$error++;
$errmsg = 'Failed to save customer stripe id in database ; '.$db->lasterror();
$errmsg = 'Failed to insert customer stripe id in database : '.$db->lasterror();
dol_syslog($errmsg, LOG_ERR, 0, '_payment');
$postactionmessages[] = $errmsg;
$ispostactionok = -1;
}
} catch (Exception $e) {
$error++;
$errmsg = 'Failed to save customer stripe id in database ; '.$e->getMessage();
$errmsg = 'Failed to get or save customer stripe id in database : '.$e->getMessage();
dol_syslog($errmsg, LOG_ERR, 0, '_payment');
$postactionmessages[] = $errmsg;
$ispostactionok = -1;
}