From f8aeb1e6f718f37b01e24144efa365a8e6f78c83 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Feb 2008 11:16:57 +0000 Subject: [PATCH] Updated gosa support daemon -Display error messages, when update failed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9170 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index d3ba4ac8c..80b214451 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -536,11 +536,16 @@ $xml_msg.= " ".$attr." "; + if($this->connect()){ $this->o_sock->write($xml_msg); $str = trim($this->o_sock->read()); $entries = $this->xml_to_array($str); if(isset($entries['XML'])){ + if(isset($entries['XML']['ERROR_STRING'])) { + $this->set_error($entries['XML']['ERROR_STRING']); + return(FALSE); + } return(TRUE); } } -- 2.30.2