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 2018/05/02 13:46:29 UTC

[directory-server] branch master updated: Fixed some I18n bad codes

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-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 445196a  Fixed some I18n bad codes
445196a is described below

commit 445196af46e2061523b87199863cbd4b65eb3ba9
Author: Emmanuel Lécharny <el...@symas.com>
AuthorDate: Wed May 2 15:46:04 2018 +0200

    Fixed some I18n bad codes
---
 .../server/core/schema/SchemaLdifToPartitionExtractor.java          | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java b/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java
index 748bbe6..20d8bfe 100644
--- a/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java
+++ b/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java
@@ -182,7 +182,7 @@ public class SchemaLdifToPartitionExtractor implements SchemaLdifExtractor
 
         if ( !source.getParentFile().exists() )
         {
-            throw new FileNotFoundException( I18n.err( I18n.ERR_11003, source.getAbsolutePath() ) );
+            throw new FileNotFoundException( I18n.err( I18n.ERR_16002_MORE_THAN_ONE_ENTRY, source.getAbsolutePath() ) );
         }
 
         InputStream in = Files.newInputStream( source.toPath() );
@@ -245,7 +245,7 @@ public class SchemaLdifToPartitionExtractor implements SchemaLdifExtractor
                     else
                     {
                         // throw an exception : we should not have more than one entry per schema ldif file
-                        String msg = I18n.err( I18n.ERR_11003, source );
+                        String msg = I18n.err( I18n.ERR_16002_MORE_THAN_ONE_ENTRY, source );
                         LOG.error( msg );
                         throw new InvalidObjectException( msg );
                     }
@@ -306,7 +306,7 @@ public class SchemaLdifToPartitionExtractor implements SchemaLdifExtractor
         }
         catch ( LdapException ne )
         {
-            String msg = I18n.err( I18n.ERR_11004, source, ne.getLocalizedMessage() );
+            String msg = I18n.err( I18n.ERR_16003_ERROR_PARSING_LDIF, source, ne.getLocalizedMessage() );
             LOG.error( msg );
             throw new InvalidObjectException( msg );
         }

-- 
To stop receiving notification emails like this one, please contact
elecharny@apache.org.