From: Jan Schneider Date: Tue, 14 Jul 2009 11:44:25 +0000 (+0200) Subject: As long as API methods return PEAR_Errors, throw them as exceptions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b8577e2c3f7bcf9be4a61ef9bca861f4b04a1083;p=horde.git As long as API methods return PEAR_Errors, throw them as exceptions. --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 34caabc71..b73bf9a40 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -604,6 +604,10 @@ class Horde_Registry $this->popApp(); } + if (is_a($res, 'PEAR_Error')) { + throw new Horde_Exception($res); + } + return $res; }