From b8577e2c3f7bcf9be4a61ef9bca861f4b04a1083 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 14 Jul 2009 13:44:25 +0200 Subject: [PATCH] As long as API methods return PEAR_Errors, throw them as exceptions. --- framework/Core/lib/Horde/Registry.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.11.0