From dc9ac9d298033ad7a29fd0f558f382590ed7df5f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Dec 2020 16:31:32 +0100 Subject: [PATCH] Fix missing error message --- htdocs/public/payment/paymentok.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index 5a49cec5bbe..a4600c57c22 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -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; }