Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error_code not passed to reply when catching exception in executeCall() #4

Open
jensschuppe opened this issue Jul 5, 2018 · 0 comments

Comments

@jensschuppe
Copy link
Contributor

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

$call->setStatus(Call::STATUS_FAILED, $e->getMessage(), $e->getErrorCode());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant