From 14c3fc2e6a4bcffd3cdeeaea7a75dbac41dc8525 Mon Sep 17 00:00:00 2001 From: Pinga Date: Sat, 5 Jul 2025 12:26:45 +0300 Subject: [PATCH] Better error logging in invoice generator --- automation/send-invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/send-invoice.php b/automation/send-invoice.php index 708b1a2..a0d3f10 100644 --- a/automation/send-invoice.php +++ b/automation/send-invoice.php @@ -158,7 +158,7 @@ try { $response = curl_exec($curl); if ($response === false) { - throw new Exception(curl_error($curl), curl_errno($curl)); + $log->error('Email error: ' . curl_error($curl) . curl_errno($curl)); } curl_close($curl);