getsentry/raven-php — Issue #5: Exception or return value in case of error
Author: Osso
Created: 2012-02-07 13:15:35+00:00
State: open

Currently curl success is not checked.

I would to able to know in my code if the request to capture an exception has been handled successfully.
I am suggesting something like this in the send_http:

Either by throwing an exception that user has to catch.
(cleaner to me but not very php like)
if(curl_exec($curl) === false)
{
throw new RavenException(curl_error($curl));
}

or returning false (more php like)
$ret = (curl_exec($curl) !== false);
curl_close($curl);
return $ret;