Return a CiviCRM-looking error if we hit a cURL error.
authorChris Burgess <chris@giantrobot.co.nz>
Fri, 31 May 2013 00:59:44 +0000 (12:59 +1200)
committerChris Burgess <chris@giantrobot.co.nz>
Fri, 31 May 2013 02:51:14 +0000 (14:51 +1200)
commit7a514fb165aefd81bc7a3dc1316d9ad6480211f4
tree1578d23cbfff253f39e1b13c685ac3bb5ac31a55
parent557f8788cc00ea7b4269c41cdbca49128bf77174
Return a CiviCRM-looking error if we hit a cURL error.

Handle cURL errors by synthesising a CiviCRM error object.

This is API so we can't depend on having CRM_Core_Error::createError() available.
api/class.api.php