From 89c3bffbdaadc28ed709f34a92bd6386bce05966 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 19 May 2006 06:33:44 +0000 Subject: [PATCH] Added additional information to the extended error message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3441 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 94ae4c924..a1f960aa3 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -760,7 +760,12 @@ class LDAP{ if ($this->error == 'Success'){ return $this->error; } else { - $error= $this->error." (".$this->get_additional_error().")"; + $adderror= $this->get_additional_error(); + if ($adderror != ""){ + $error= $this->error." (".$this->get_additional_error().", ".sprintf(_("while operating on '%s' using LDAP server '%s'"), $this->base, $this->hostname).")"; + } else { + $error= $this->error." (".sprintf(_("while operating on LDAP server %s"), $this->hostname).")"; + } return $error; } } -- 2.30.2