From: cajus Date: Mon, 7 Jul 2008 16:47:15 +0000 (+0000) Subject: Corrected typo that didn't display server errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ea8a3ba70a1d68f8cc4ca9c2ce3cd67594079bd0;p=gosa.git Corrected typo that didn't display server errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11549 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/opsi.pm b/gosa-si/client/events/opsi.pm index 6f8bbfdb6..90c67a2cd 100644 --- a/gosa-si/client/events/opsi.pm +++ b/gosa-si/client/events/opsi.pm @@ -48,11 +48,13 @@ sub check_res { if($res) { if ($res->is_error) { &main::daemon_log("ERROR: opsi configed communication failed: ".$res->error_message, 1); + &add_content2xml_hash($out_hash, "error", $res->error_message); } else { return 1; } } else { &main::daemon_log("ERROR: opsi configed communication failed: ".$client->status_line, 1); + &add_content2xml_hash($out_hash, "error", $client->status_line); } return 0; @@ -262,7 +264,7 @@ sub opsi_set_product_properties { if (!check_res($res)){ &main::daemon_log("ERROR: no communication failed while setting '".$item->{'name'}[0]."': ".$res->error_message, 1); - &add_content2xml_hash($out_hash, "error", $$res->error_message); + &add_content2xml_hash($out_hash, "error", $res->error_message); } }