Verified Commit 204e00e1 authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano

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: Kevin Cristiano's avatarKevin Cristiano <kcristiano@kcristiano.com>
parent 37cc486e
......@@ -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 );
}
......
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