summaryrefslogtreecommitdiff
path: root/src/EmailMessage.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/EmailMessage.php')
-rw-r--r--src/EmailMessage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EmailMessage.php b/src/EmailMessage.php
index b677574..7c9ddbb 100644
--- a/src/EmailMessage.php
+++ b/src/EmailMessage.php
@@ -52,7 +52,7 @@ abstract class EmailMessage implements Message {
if (count($msg->headers) == 1 && array_key_exists(null, $msg->headers)) {
# An empty message has one null header.
- trigger_error('No message', E_USER_ERROR);
+ throw new Exception('No message');
}
return $msg;