diff --git a/wp-rest/Controller/Rest.php b/wp-rest/Controller/Rest.php
index 0aeb3dff57288ec459badd314d79862a0c70ba99..61706f85fdc56b540829ca685dc607b173e45795 100644
--- a/wp-rest/Controller/Rest.php
+++ b/wp-rest/Controller/Rest.php
@@ -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 );
 
 		}