civicrm/civicrm-core — pull request #925 by xurizaemon (2013-05-31 01:02:30+00:00)
Title: CRM-12737 - 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.