continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r443195 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
Date Thu, 14 Sep 2006 02:15:35 GMT
Author: carlos
Date: Wed Sep 13 19:15:34 2006
New Revision: 443195

URL: http://svn.apache.org/viewvc?view=rev&rev=443195
Log:
User friendly error message

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java?view=diff&rev=443195&r1=443194&r2=443195
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java
Wed Sep 13 19:15:34 2006
@@ -17,11 +17,12 @@
  *
  */
 
-import com.opensymphony.xwork.Preparable;
 import org.apache.maven.continuum.Continuum;
 import org.apache.maven.continuum.initialization.ContinuumInitializationException;
 import org.codehaus.plexus.xwork.action.PlexusActionSupport;
 
+import com.opensymphony.xwork.Preparable;
+
 /**
  * ContinuumActionSupport
  *
@@ -43,11 +44,13 @@
     public void prepare()
         throws Exception
     {
-        getLogger().info("checking the continuum configuration");
+        getLogger().debug( "Checking if Continuum is initialized" );
 
         if ( !continuum.getConfiguration().isInitialized() )
         {
-            throw new ContinuumInitializationException( "continuum not initialized" );
+            throw new ContinuumInitializationException( "This is your first time running
continuum, "
+                + "when you access it through a web browser you will need to enter some "
+                + "information before being able to use it. " + "You can ignore this exception."
);
         }
 
     }



Mime
View raw message