Skip to content
Snippets Groups Projects
Verified Commit 1424b049 authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano
Browse files

assign error, don't return it from catch block


Always format the result!
If we call the 'rest' endpoint without json param
we are getting the error in json format
instead of the expected xml format.

Signed-off-by: default avatarKevin Cristiano <kcristiano@kcristiano.com>
parent b0de8922
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class Rest extends Base {
} catch ( \CiviCRM_API3_Exception $e ) {
return $this->civi_rest_error( $e->getMessage() );
$items = $this->civi_rest_error( $e );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment