From 001f9be89da75fd15aec093857458a270499e681 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 19:03:19 +0000 Subject: 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 --- src/EmailMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/EmailMessage.php') 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; -- cgit v1.2.3