Skip to content

Commit

Permalink
Define $status even when an exception gets thrown
Browse files Browse the repository at this point in the history
Fixes #1083
  • Loading branch information
zackgalbreath committed Nov 13, 2020
1 parent ddc2fcf commit 478d23e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/cdash/include/Messaging/Notification/Email/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function send(EmailMessage $message)
try {
$status = $swift_mailer->send($swift_message, $failed_recipients);
} catch (\Exception $e) {
$status = 0;
$log = Log::getInstance();
$log->add_log($e->getMessage(), __METHOD__);
}
Expand Down

0 comments on commit 478d23e

Please sign in to comment.