From: markt Date: Fri, 20 Aug 2010 15:09:04 +0000 (+0000) Subject: Add a message to the exception X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ba26b8bae277eee2eb486822a1738b866ae2584b;p=tomcat7.0 Add a message to the exception git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@987538 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/mbeans/MBeanFactory.java b/java/org/apache/catalina/mbeans/MBeanFactory.java index 09ddee750..660ac7839 100644 --- a/java/org/apache/catalina/mbeans/MBeanFactory.java +++ b/java/org/apache/catalina/mbeans/MBeanFactory.java @@ -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();