Skip to content

Commit ea47cb4

Browse files
committed
minor symfony#57295 [Mime] Tweak an exception to be more descriptive (fabpot)
This PR was merged into the 7.2 branch. Discussion ---------- [Mime] Tweak an exception to be more descriptive | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix symfony#54162 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Commits ------- b5cacc9 [Mime] Tweak an exception to be more descriptive
2 parents 9ca598c + b5cacc9 commit ea47cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mime/Part/DataPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function asInline(): static
6666
public function setContentId(string $cid): static
6767
{
6868
if (!str_contains($cid, '@')) {
69-
throw new InvalidArgumentException(sprintf('Invalid cid "%s".', $cid));
69+
throw new InvalidArgumentException(sprintf('The "%s" CID is invalid as it doesn\'t contain an "@".', $cid));
7070
}
7171

7272
$this->cid = $cid;

0 commit comments

Comments
 (0)