mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-02 19:27:37 +02:00
One day I will learn
This commit is contained in:
@@ -84,7 +84,8 @@ class SwiftMailerHandler extends MailHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$message instanceof Swift_Message) {
|
if (!$message instanceof Swift_Message) {
|
||||||
throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it' . Utils::getRecordMessageForException(reset($records)));
|
$record = reset($records);
|
||||||
|
throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it' . ($record ? Utils::getRecordMessageForException($record) : ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($records) {
|
if ($records) {
|
||||||
|
Reference in New Issue
Block a user