]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPConnection.cpp
- improvments on schema parsing
[openldap] / contrib / ldapc++ / src / LDAPConnection.cpp
index 821f2ec03c73a34a1e4f0ea19174365494d5d26e..3dde84589082eb34ee1a41d580dfb08ef9f8bfdf 100644 (file)
@@ -198,9 +198,10 @@ void LDAPConnection::modify(const string& dn, const LDAPModList* mods,
         }
         break;
         default :
+            string srvMsg = res->getErrMsg();
             delete res;
             delete msg;
-            throw LDAPException(resCode);
+            throw LDAPException(resCode,srvMsg);
     }
     
 }