X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FDashboard.php;h=77f6d30bd6141e0d46e3c67f2b858f32f1101fa3;hb=a60c0bc84a8db9a4123f53879109576524393ff9;hp=904fc837cfe9e3c1883f69923e1ce49947fec301;hpb=55e2fa825d81da2f72acd2296a10962516e6f172;p=civicrm-core.git diff --git a/api/v3/Dashboard.php b/api/v3/Dashboard.php index 904fc837cf..77f6d30bd6 100644 --- a/api/v3/Dashboard.php +++ b/api/v3/Dashboard.php @@ -93,6 +93,6 @@ function civicrm_api3_dashboard_delete($params) { return civicrm_api3_create_success(1, $params, 'Dashboard', 'delete'); } else { - return civicrm_api3_create_error('Could not delete dashlet'); + throw new API_Exception('Could not delete dashlet'); } }