ticket / mailclient added dump information on mail fetch error

This commit is contained in:
OpenXE 2023-05-23 11:16:16 +02:00
parent d294daa08b
commit 5a4c73d9b8

View File

@ -128,7 +128,7 @@ final class ImapMailClient implements MailClientInterface
$message = $this->imap->getMessage($msgNumber);
} catch (Exception $e) {
throw new MessageNotFoundException(
sprintf('Message number %s not found.', $msgNumber)
sprintf("Message number %s could not be fetched.\n\r%s", $msgNumber,print_r($e,true))
);
}