From b55419203b01c946e579b537eafc4ecb30d167f1 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Mon, 16 May 2016 21:21:03 +0200 Subject: [PATCH] Generate the same structure for API success and API failures in the API examples. --- tests/templates/documentFunction.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/templates/documentFunction.tpl b/tests/templates/documentFunction.tpl index 43293eeda3..5a40ea76e7 100644 --- a/tests/templates/documentFunction.tpl +++ b/tests/templates/documentFunction.tpl @@ -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, ); -- 2.25.1