Skip to content

EspoCRM – Open Source CRM Application

Error message change

Yurii4ad70dd74107
diff --git a/application/Espo/Core/Record/Formula/Processor.php b/application/Espo/Core/Record/Formula/Processor.php
index 2ffa2c9807..48b991c837 100644
--- a/application/Espo/Core/Record/Formula/Processor.php
+++ b/application/Espo/Core/Record/Formula/Processor.php
@@ -110,7 +110,9 @@ class Processor
} catch (WrapperException $e) {
throw $e->getWrappedException();
} catch (FormulaError $e) {
- throw new RuntimeException('Before save API script error.', previous: $e);
+ $entityType = $entity->getEntityType();
+
+ throw new RuntimeException("Before-save formula API script failed for '$entityType'.", previous: $e);
}
}