diff --git a/src/Notifier.php b/src/Notifier.php index bc35f8d..f3be9c5 100644 --- a/src/Notifier.php +++ b/src/Notifier.php @@ -319,7 +319,13 @@ public function sendNotice($notice) } $req = $this->newHttpRequest($notice); - $resp = $this->sendRequest($req); + try { + $resp = $this->sendRequest($req); + } catch (\Exception $e) { + // Not all exceptions are handled when 'http_errors' => false. Timeouts for example. We ignore these in general. + $notice['error'] = 'http send failed: ' . $e->getMessage(); + return $notice; + } return $this->processHttpResponse($notice, $resp); }