From 7d5ae6bf8a6da1cf7cca7159820c1d152f6ca915 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 10 May 2011 09:44:34 +0000 Subject: [PATCH] Added error reporting to remoteObject calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20795 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_remoteObject.inc | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.30.2