From: cajus Date: Fri, 19 May 2006 06:33:44 +0000 (+0000) Subject: Added additional information to the extended error message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=89c3bffbdaadc28ed709f34a92bd6386bce05966;p=gosa.git Added additional information to the extended error message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3441 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; } }