Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Throw exception on curl exec error #2
Conversation
|
looks good to me |
Throw exception on curl exec error
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.