EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Error message change
Yuriib0f4a4680b2b
diff --git a/application/Espo/Hooks/Common/Formula.php b/application/Espo/Hooks/Common/Formula.phpindex 10933b2036..6e8476eb97 100644--- a/application/Espo/Hooks/Common/Formula.php+++ b/application/Espo/Hooks/Common/Formula.php@@ -85,7 +85,9 @@ class Formula implements BeforeSavethrow new ValidationException("Before-save validation error.", previous: $e);}- throw new PersistenceException("Before-save formula script failed.", previous: $e);+ $entityType = $entity->getEntityType();++ throw new PersistenceException("Before-save formula script failed for '$entityType'.", previous: $e);}}}