You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2022/09/03 07:59:56 UTC

[directory-ldap-api] branch master updated: Imporved a LDIF error log message

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 828a23ff0 Imporved a LDIF error log message
828a23ff0 is described below

commit 828a23ff0fc52f7770839833cdef4eed81c50fd3
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Sat Sep 3 09:59:33 2022 +0200

    Imporved a LDIF error log message
---
 i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties | 2 +-
 .../main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties b/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
index c3baa7fca..f197901f8 100644
--- a/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
+++ b/i18n/src/main/resources/org/apache/directory/api/i18n/errors.properties
@@ -583,7 +583,7 @@ ERR_13426_CANNOT_PARSE_INEXISTANT_FILE=Cannot parse the file {0}, it does not ex
 ERR_13427_CANNOT_FIND_FILE=Cannot find file {0}
 ERR_13428_CANNOT_PARSE_LDIF=Cannot parse the ldif buffer: {0}
 ERR_13429_ERROR_PARSING_LDIF=Error while parsing ldif: {0}
-ERR_13430_PREMATURE_LDIF_ITERATOR_TERMINATION=Premature termination of LDIF iterator
+ERR_13430_PREMATURE_LDIF_ITERATOR_TERMINATION=Premature termination of LDIF iterator: {0}
 ERR_13431_UNEXPECTED_CHANGETYPE=Unexpected ChangeType: {0}
 ERR_13432_NULL_ADDED_CONTROL=The added control must not be null
 ERR_13433_SEE_DIRSERVER_1547=See DIRSERVER-1547
diff --git a/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java b/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
index e63d4d1d4..fdf1148e3 100644
--- a/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
+++ b/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
@@ -1977,7 +1977,7 @@ public class LdifReader implements Iterable<LdifEntry>, Closeable
         }
         catch ( LdapLdifException ne )
         {
-            LOG.error( I18n.err( I18n.ERR_13430_PREMATURE_LDIF_ITERATOR_TERMINATION ) );
+            LOG.error( I18n.err( I18n.ERR_13430_PREMATURE_LDIF_ITERATOR_TERMINATION, ne.getMessage() ) );
             error = ne;
             return null;
         }