Small update

This commit is contained in:
Pinga 2023-12-01 10:53:58 +02:00
parent 32466ef60c
commit db75518533
3 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ try {
$response = curl_exec($curl);
if ($response === false) {
$log->error('Curl error: ' . curl_error($curl) . curl_errno($curl));
throw new Exception(curl_error($curl), curl_errno($curl));
}
curl_close($curl);
@ -123,4 +123,6 @@ try {
}
} catch (PDOException $e) {
$log->error('Database error: ' . $e->getMessage());
} catch (Throwable $e) {
$log->error('Error: ' . $e->getMessage());
}