Skip to content

Commit a8ae4dd

Browse files
committed
[Mime] Tweak an exception to be more descriptive
1 parent 0c47635 commit a8ae4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)