Skip to content

Commit

Permalink
ENGCOM-9149: Fix regression - Add previous exception with more details
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov committed Oct 12, 2021
2 parents 5a5f1fe + 3ac14a9 commit 8acba07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Email/Model/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function sendMessage()
$this->laminasTransport->send($laminasMessage);
} catch (\Exception $e) {
$this->logger->error($e);
throw new MailException(new Phrase('Unable to send mail. Please try again later.'));
throw new MailException(new Phrase('Unable to send mail. Please try again later.'), $e);
}
}

Expand Down

0 comments on commit 8acba07

Please sign in to comment.