directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r940196 - /directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
Date Sun, 02 May 2010 11:53:47 GMT
Author: seelmann
Date: Sun May  2 11:53:46 2010
New Revision: 940196

URL: http://svn.apache.org/viewvc?rev=940196&view=rev
Log:
Throw error if something goes wrong when applying an LDIF, makes debugging easier.

Modified:
    directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java

Modified: directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java?rev=940196&r1=940195&r2=940196&view=diff
==============================================================================
--- directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
(original)
+++ directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
Sun May  2 11:53:46 2010
@@ -277,21 +277,14 @@ public class DSAnnotationProcessor
                 }
                 else
                 {
-                    try
-                    {
-                        LdifReader ldifReader = new LdifReader( is );
-
-                        for ( LdifEntry entry : ldifReader )
-                        {
-                            injectEntry( entry, service );
-                        }
+                    LdifReader ldifReader = new LdifReader( is );
 
-                        ldifReader.close();
-                    }
-                    catch ( Exception e )
+                    for ( LdifEntry entry : ldifReader )
                     {
-                        LOG.error( I18n.err( I18n.ERR_80, ldifFile, e.getLocalizedMessage()
) );
+                        injectEntry( entry, service );
                     }
+
+                    ldifReader.close();
                 }
             }
         }



Mime
View raw message