Author: ggregory
Date: Sun Jan 12 15:37:12 2014
New Revision: 1557547

URL: http://svn.apache.org/r1557547
Log:
Better exception messages.

Modified:
    
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/MulticastDNSAdvertiser.java

Modified: 
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/MulticastDNSAdvertiser.java
URL: 
http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/MulticastDNSAdvertiser.java?rev=1557547&r1=1557546&r2=1557547&view=diff
==============================================================================
--- 
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/MulticastDNSAdvertiser.java
 (original)
+++ 
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/MulticastDNSAdvertiser.java
 Sun Jan 12 15:37:12 2014
@@ -154,11 +154,11 @@ public class MulticastDNSAdvertiser impl
             final Method jmDNSCreateMethod = jmDNSClass.getMethod("create", 
(Class[])null);
             return jmDNSCreateMethod.invoke(null, (Object[])null);
         } catch (final IllegalAccessException e) {
-            LOGGER.warn("Unable to instantiate jmdns class", e);
+            LOGGER.warn("Unable to invoke create method", e);
         } catch (final NoSuchMethodException e) {
-            LOGGER.warn("Unable to access constructor", e);
+            LOGGER.warn("Unable to get create method", e);
         } catch (final InvocationTargetException e) {
-            LOGGER.warn("Unable to call constructor", e);
+            LOGGER.warn("Unable to invoke create method", e);
         }
         return null;
     }


Reply via email to