Add a message to the exception
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 20 Aug 2010 15:09:04 +0000 (15:09 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 20 Aug 2010 15:09:04 +0000 (15:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@987538 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/mbeans/MBeanFactory.java

index 09ddee7..660ac78 100644 (file)
@@ -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();