Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down