Ticket system improvement on error handling and logging

This commit is contained in:
OpenXE
2023-02-01 19:02:16 +01:00
parent 9daaf58281
commit 9a45653eaf
2 changed files with 13 additions and 7 deletions
@@ -161,7 +161,7 @@ class MailAttachmentData implements MailAttachmentInterface
$content = $part->getContent();
if ($content === null) { // This should not be
throw new InvalidArgumentException(
sprintf('content is null "%s"', substr(print_r($part,true),1000))
sprintf('content is null "%s"', substr(print_r($part,true),0,1000))
);
}