Skip to content
This repository has been archived by the owner. It is now read-only.

Throw exception on curl exec error #2

Merged
merged 1 commit into from May 15, 2013
Merged

Conversation

@siboulet
Copy link
Contributor

@siboulet siboulet commented Mar 7, 2013

Currently curl_exec errors are not handled. This causes curl error (such as connection error, invalid SSL certificate, etc.) to return null $json (hits line 93).

This patch checks curl_exec return value and throw on error.

Also removed unnecessary double initialization of $status.

@hyunlim
Copy link
Contributor

@hyunlim hyunlim commented May 15, 2013

looks good to me

hyunlim pushed a commit that referenced this pull request May 15, 2013
Throw exception on curl exec error
@hyunlim hyunlim merged commit 673e231 into loggly:master May 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.