Skip to content

EspoCRM – Open Source CRM Application

Error message change

Yuriib0f4a4680b2b
diff --git a/application/Espo/Hooks/Common/Formula.php b/application/Espo/Hooks/Common/Formula.php
index 10933b2036..6e8476eb97 100644
--- a/application/Espo/Hooks/Common/Formula.php
+++ b/application/Espo/Hooks/Common/Formula.php
@@ -85,7 +85,9 @@ class Formula implements BeforeSave
throw 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);
}
}
}