tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r987538 - /tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java
Date Fri, 20 Aug 2010 15:09:05 GMT
Author: markt
Date: Fri Aug 20 15:09:04 2010
New Revision: 987538

URL: http://svn.apache.org/viewvc?rev=987538&view=rev
Log:
Add a message to the exception

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java?rev=987538&r1=987537&r2=987538&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java Fri Aug 20 15:09:04 2010
@@ -688,7 +688,7 @@ public class MBeanFactory {
             String defaultHost, String baseDir) throws Exception{
 
         if (!(container instanceof Server)) {
-            throw new Exception();
+            throw new Exception("Container not Server");
         }
         
         StandardEngine engine = new StandardEngine();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message