summaryrefslogtreecommitdiff
path: root/src/EmailMessage.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 19:03:19 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 19:03:19 +0000
commit001f9be89da75fd15aec093857458a270499e681 (patch)
tree23c78cb1402d8d3dd12c895d318c795fbe01e6dd /src/EmailMessage.php
parenta9880643f1adebb81112835d665fb8b5b6904491 (diff)
Converted trigger_error to 'throw new Exception'.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6669 67b53d14-2c14-4ace-a08f-0dab2b34000c
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;