1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Remove variable func call and some more curl error checks

This commit is contained in:
Jordi Boggiano
2015-06-19 14:29:43 +01:00
parent 0c3d2082ad
commit 4e53428476
2 changed files with 11 additions and 3 deletions

View File

@@ -63,7 +63,9 @@ class MandrillHandler extends MailHandler
'async' => false,
)));
curl_exec($ch);
if (curl_exec($ch) === false) {
throw new \RuntimeException(sprintf('Curl error (code %s): %s', curl_errno($ch), curl_error($ch)));
}
curl_close($ch);
}
}