Skip to content

Commit

Permalink
[Mime] Tweak an exception to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 3, 2024
1 parent 9f11f46 commit b5cacc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Mime/Part/DataPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function asInline(): static
public function setContentId(string $cid): static
{
if (!str_contains($cid, '@')) {
throw new InvalidArgumentException(sprintf('Invalid cid "%s".', $cid));
throw new InvalidArgumentException(sprintf('The "%s" CID is invalid as it doesn\'t contain an "@".', $cid));
}

$this->cid = $cid;
Expand Down

0 comments on commit b5cacc9

Please sign in to comment.