Commit 51d92412 authored by eileen's avatar eileen 🎱

Merge pull request #8375 from mollux/CRM-18563_example_exception_inconsistent

CRM-18563 Generate the same structure for API success and API failures in the API examples.
parents ba23023e b5541920
......@@ -30,7 +30,8 @@ function {$function}_example() {literal}{{/literal}
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment