directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r981877 - /directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java
Date Tue, 03 Aug 2010 13:48:45 GMT
Author: pamarcelot
Date: Tue Aug  3 13:48:45 2010
New Revision: 981877

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

Modified:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java?rev=981877&r1=981876&r2=981877&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StartLdapServerRunnable.java
Tue Aug  3 13:48:45 2010
@@ -80,7 +80,8 @@ public class StartLdapServerRunnable imp
      */
     public String getName()
     {
-        return NLS.bind( Messages.getString( "StartLdapServerRunnable.StartServer" ), new
String[] { server.getName() } ); //$NON-NLS-1$
+        return NLS
+            .bind( Messages.getString( "StartLdapServerRunnable.StartServer" ), new String[]
{ server.getName() } ); //$NON-NLS-1$
     }
 
 
@@ -112,8 +113,12 @@ public class StartLdapServerRunnable imp
                 }
                 catch ( Exception e )
                 {
-                    // TODO Auto-generated catch block
-                    e.printStackTrace();
+                    // Setting the server as stopped
+                    server.setStatus( LdapServerStatus.STOPPED );
+
+                    // Reporting the error to the monitor
+                    monitor.reportError( e );
+
                 }
             }
         }



Mime
View raw message