From 14a5ddb4d8517e365d8ecb0627d248af24355080 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 21 Apr 2021 16:37:35 +1200 Subject: [PATCH] Include more data in error message --- CRM/Core/ManagedEntities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.25.1