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) if (!$resql)
{ {
$error++; $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; $postactionmessages[] = $errmsg;
$ispostactionok = -1; $ispostactionok = -1;
} }
} catch (Exception $e) { } catch (Exception $e) {
$error++; $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; $postactionmessages[] = $errmsg;
$ispostactionok = -1; $ispostactionok = -1;
} }