directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r981871 - /directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java
Date Tue, 03 Aug 2010 13:41:39 GMT
Author: pamarcelot
Date: Tue Aug  3 13:41:39 2010
New Revision: 981871

URL: http://svn.apache.org/viewvc?rev=981871&view=rev
Log:
Reporting the exception correctly to the ProgressMonitor.

Modified:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java?rev=981871&r1=981870&r2=981871&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/NewServerWizard.java
Tue Aug  3 13:41:39 2010
@@ -86,15 +86,15 @@ public class NewServerWizard extends Wiz
                     // Creating the folder for the new server
                     LdapServersManager.createNewServerFolder( server );
 
-                    // Letting the LDAP Server Adapter finish the creation of the server
                     try
                     {
+                        // Letting the LDAP Server Adapter finish the creation of the server
                         adapterExtension.getInstance().add( server, spm );
                     }
                     catch ( Exception e )
                     {
-                        // TODO Auto-generated catch block
-                        e.printStackTrace();
+                        // Reporting the error to the progress monitor
+                        spm.reportError( e );
                     }
 
                     // Reporting to the monitors that we're done



Mime
View raw message