From b182c7752e946d145f279feaac550b134c65e98a Mon Sep 17 00:00:00 2001 From: yaroslavbr Date: Wed, 24 Feb 2021 17:40:19 +0200 Subject: [PATCH] EmailTemplateCompilationException wrong message: - fixed exception message --- .../Exception/EmailTemplateCompilationException.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Oro/Bundle/EmailBundle/Exception/EmailTemplateCompilationException.php b/src/Oro/Bundle/EmailBundle/Exception/EmailTemplateCompilationException.php index de7aa5f92d4..d77c1ce537f 100644 --- a/src/Oro/Bundle/EmailBundle/Exception/EmailTemplateCompilationException.php +++ b/src/Oro/Bundle/EmailBundle/Exception/EmailTemplateCompilationException.php @@ -14,7 +14,10 @@ class EmailTemplateCompilationException extends EmailTemplateException */ public function __construct(EmailTemplateCriteria $criteria) { - $message = sprintf('Could not found one email template with "%s" name', $criteria->getName()); + $message = sprintf( + 'Compilation error during rendering template "%s". Please look at the log file for more details.', + $criteria->getName() + ); if ($criteria->getEntityName()) { $message = sprintf('%s for "%s" entity', $message, $criteria->getEntityName());