Code

Added error reporting to remoteObject calls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 May 2011 09:44:34 +0000 (09:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 May 2011 09:44:34 +0000 (09:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20795 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_remoteObject.inc

index 56d025765e0cf2eb5defa750ff8a91d389339747..224081a4525edcb8f35aa677504b5ae25e7a360f 100644 (file)
@@ -121,6 +121,11 @@ class remoteObject
             $fArgs[] = $name;
             $fArgs = array_merge($fArgs, $args);
             $res = call_user_func_array(array($this->rpcHandle,"dispatchObjectMethod"), $fArgs);
+
+            if(!$this->rpcHandle->success()){
+                trigger_error($this->rpcHandle->get_error());
+            }
+
             return($res);
         }