]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
fix error text problems
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:35:41 +0000 (03:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:35:41 +0000 (03:35 +0000)
servers/slapd/back-ldbm/modify.c

index 07a5747b612e4aefabc09517c18f6d717a1e0dd6..8e7c7441a852cceb361a7f9d61fc8e6b235db7e6 100644 (file)
@@ -60,9 +60,9 @@ int ldbm_modify_internal(
                        err = add_values( e, mod, op->o_ndn );
 
                        if( err != LDAP_SUCCESS ) {
+                               *text = "modify: add values failed";
                                Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n",
                                        err, *text, 0);
-                               *text = "modify: add values failed";
                        }
                        break;
 
@@ -71,9 +71,9 @@ int ldbm_modify_internal(
                        err = delete_values( e, mod, op->o_ndn );
                        assert( err != LDAP_TYPE_OR_VALUE_EXISTS );
                        if( err != LDAP_SUCCESS ) {
+                               *text = "modify: delete values failed";
                                Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n",
                                        err, *text, 0);
-                               *text = "modify: delete values failed";
                        }
                        break;
 
@@ -82,9 +82,9 @@ int ldbm_modify_internal(
                        err = replace_values( e, mod, op->o_ndn );
                        assert( err != LDAP_TYPE_OR_VALUE_EXISTS );
                        if( err != LDAP_SUCCESS ) {
+                               *text = "modify: replace values failed";
                                Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n",
                                        err, *text, 0);
-                               *text = "modify: replace values failed";
                        }
                        break;
 
@@ -101,9 +101,9 @@ int ldbm_modify_internal(
                        }
 
                        if( err != LDAP_SUCCESS ) {
+                               *text = "modify: (soft)add values failed";
                                Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n",
                                        err, *text, 0);
-                               *text = "modify: (soft)add values failed";
                        }
                        break;