X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FContributionSoft%2FCreate.php;h=8450990dfc2409e9301cd7079452d8f08f44465b;hb=146d89958a273935ea97b4157fa8c89c7a5bffc5;hp=d88953f94f17cf8631fbd93f19491134d92028b3;hpb=ace706265dd7034522732b4e65825f5cb8a76360;p=civicrm-core.git diff --git a/api/v3/examples/ContributionSoft/Create.php b/api/v3/examples/ContributionSoft/Create.php index d88953f94f..8450990dfc 100644 --- a/api/v3/examples/ContributionSoft/Create.php +++ b/api/v3/examples/ContributionSoft/Create.php @@ -23,7 +23,8 @@ function contribution_soft_create_example() { $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, );