[#20] fixed exception handling

This commit is contained in:
B. Endres 2020-05-24 18:57:19 +02:00
parent 3463da4514
commit 9b5165f5a6
3 changed files with 6 additions and 4 deletions

View file

@ -139,7 +139,7 @@ function civicrm_api3_twingle_donation_endrecurring($params) {
$result = civicrm_api3_create_success($contribution);
}
catch (CiviCRM_API3_Exception $exception) {
catch (Exception $exception) {
$result = civicrm_api3_create_error($exception->getMessage());
}