From 79e80afe9523b86fa744010da381d1245315d990 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 21 Mar 2014 18:56:23 -0700 Subject: [PATCH] CRM-14370 - API Kernel - Fix short-circuiting which breaks formatters/exceptions-handlers --- Civi/API/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/API/Kernel.php b/Civi/API/Kernel.php index 50f25eeba3..a974c50415 100644 --- a/Civi/API/Kernel.php +++ b/Civi/API/Kernel.php @@ -135,7 +135,7 @@ class Kernel { $result = isset($extra) ? $function($apiRequest['params'], $extra) : $function($apiRequest['params']); } else { - return civicrm_api3_create_error("API (" . $apiRequest['entity'] . ", " . $apiRequest['action'] . ") does not exist (join the API team and implement it!)"); + throw new \API_Exception("API (" . $apiRequest['entity'] . ", " . $apiRequest['action'] . ") does not exist (join the API team and implement it!)"); } // For output filtering, process $apiWrappers in reverse order -- 2.25.1