From 67bba00774607399595d7da933ae62083912180f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 6 Sep 2009 18:39:45 +0200 Subject: [PATCH] Re-throw PEAR_Error as exception. --- framework/Mime/lib/Horde/Mime/Part.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 1cab6e91e..b7d87660a 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -1371,6 +1371,9 @@ class Horde_Mime_Part public function send($email, $headers, $driver, $params = array()) { $mailer = Mail::factory($driver, $params); + if ($mailer instanceof PEAR_Error) { + throw new Horde_Mime_Exception($mailer); + } $old_basepart = $this->_basepart; $this->_basepart = true; -- 2.11.0