Open jensschuppe opened 6 years ago
At least for the local connector (cURL not checked), when doing
$call->setStatus(Call::STATUS_FAILED, $e->getMessage());
CiviCRM's error_message is not passed through and is thus not available within the call's reply property. At least for the local connector, only CiviCRM_API3_Exceptions should be caught, and their error code be passed using
reply
CiviCRM_API3_Exception
$call->setStatus(Call::STATUS_FAILED, $e->getMessage(), $e->getErrorCode());
At least for the local connector (cURL not checked), when doing
CiviCRM's error_message is not passed through and is thus not available within the call's
reply
property. At least for the local connector, onlyCiviCRM_API3_Exception
s should be caught, and their error code be passed using