From: eileen Date: Wed, 21 Apr 2021 04:37:35 +0000 (+1200) Subject: Include more data in error message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=14a5ddb4d8517e365d8ecb0627d248af24355080;p=civicrm-core.git Include more data in error message --- diff --git a/CRM/Core/ManagedEntities.php b/CRM/Core/ManagedEntities.php index 22d9f12f82..20739c8c6c 100644 --- a/CRM/Core/ManagedEntities.php +++ b/CRM/Core/ManagedEntities.php @@ -474,7 +474,7 @@ class CRM_Core_ManagedEntities { 'params' => $params, 'result' => $result, ]); - throw new Exception('API error: ' . $result['error_message']); + throw new Exception('API error: ' . $result['error_message'] . ' on ' . $entity . '.' . $action); } }