Skip to content

Commit 8120122

Browse files
committed
adapt error message
1 parent 2b2968e commit 8120122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Base/Exceptions/ContentFieldValidationException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public static function createNewWithMultiline(array $errors, ?string $contentNam
5959
$exception = new self($errors);
6060
$exception->contentName = $contentName;
6161

62-
$exception->setMessageTemplate('Content "%contentName%" fields did not validate: %errors%');
62+
$exception->setMessageTemplate('Content%contentName%fields did not validate: %errors%');
6363
$exception->setParameters([
6464
'%errors%' => $exception->generateValidationErrorsMessages(),
65-
'%contentName%' => $exception->contentName !== null ? $exception->contentName : '',
65+
'%contentName%' => $exception->contentName !== null ? ' "'. $exception->contentName. '" ' : ' ',
6666
]);
6767
$exception->message = $exception->getBaseTranslation();
6868

0 commit comments

Comments
 (0)