From: hickert Date: Tue, 10 May 2011 09:44:34 +0000 (+0000) Subject: Added error reporting to remoteObject calls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d5ae6bf8a6da1cf7cca7159820c1d152f6ca915;p=gosa.git Added error reporting to remoteObject calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20795 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_remoteObject.inc b/gosa-core/include/class_remoteObject.inc index 56d025765..224081a45 100644 --- a/gosa-core/include/class_remoteObject.inc +++ b/gosa-core/include/class_remoteObject.inc @@ -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); }