Revert "API calls should no longer be throwing PEAR_Errors in H4"
authorJan Schneider <jan@horde.org>
Tue, 28 Dec 2010 11:55:04 +0000 (12:55 +0100)
committerJan Schneider <jan@horde.org>
Tue, 28 Dec 2010 11:55:04 +0000 (12:55 +0100)
This reverts commit d48f5b4547eddd1f2014c715b1d70d7dd5303922.

The actually do, until someone goes through all Api.php files and fixes that.

framework/Core/lib/Horde/Registry.php

index 5b34556..3ce295d 100644 (file)
@@ -959,6 +959,9 @@ class Horde_Registry
 
         try {
             $result = call_user_func_array(array($api, $call), $args);
+            if ($result instanceof PEAR_Error) {
+                throw new Horde_Exception_Prior($result);
+            }
         } catch (Horde_Exception $e) {
             $result = $e;
         }