Update test examples.
[civicrm-core.git] / api / v3 / examples / Contact / FormatIsSuccess_True.php
index 09a9febca027252f1a5dd35ae87298bdaf632c00..9f46af903faf70d2429e118210937560d612844b 100644 (file)
@@ -23,7 +23,8 @@ function contact_get_example() {
     $errorCode = $e->getErrorCode();
     $errorData = $e->getExtraParams();
     return array(
-      'error' => $errorMessage,
+      'is_error' => 1,
+      'error_message' => $errorMessage,
       'error_code' => $errorCode,
       'error_data' => $errorData,
     );