ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1624505 - /ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java
Date Fri, 12 Sep 2014 11:56:47 GMT
Author: marrs
Date: Fri Sep 12 11:56:47 2014
New Revision: 1624505

URL: http://svn.apache.org/r1624505
Log:
Small update to ensure errors in configuration get communicated better.

Modified:
    ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java

Modified: ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java?rev=1624505&r1=1624504&r2=1624505&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java (original)
+++ ace/trunk/org.apache.ace.log/src/org/apache/ace/log/server/servlet/Activator.java Fri
Sep 12 11:56:47 2014
@@ -75,13 +75,13 @@ public class Activator extends Dependenc
     public void updated(String pid, Dictionary dict) throws ConfigurationException {
         String name = (String) dict.get(KEY_LOG_NAME);
         if ((name == null) || "".equals(name)) {
-            throw new ConfigurationException(KEY_LOG_NAME, "Log name has to be specified.");
+            throw new ConfigurationException(KEY_LOG_NAME, "Log name has to be specified:
" + name);
         }
         
         String useAuthString = (String) dict.get(KEY_USE_AUTHENTICATION);
         if (useAuthString == null
             || !("true".equalsIgnoreCase(useAuthString) || "false".equalsIgnoreCase(useAuthString)))
{
-            throw new ConfigurationException(KEY_USE_AUTHENTICATION, "Missing or invalid
value!");
+            throw new ConfigurationException(KEY_USE_AUTHENTICATION, "Missing or invalid
value: " + useAuthString);
         }
         boolean useAuth = Boolean.parseBoolean(useAuthString);
 



Mime
View raw message