Return-Path: X-Original-To: apmail-ace-commits-archive@www.apache.org Delivered-To: apmail-ace-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8131B114EF for ; Fri, 12 Sep 2014 11:57:11 +0000 (UTC) Received: (qmail 43068 invoked by uid 500); 12 Sep 2014 11:57:11 -0000 Delivered-To: apmail-ace-commits-archive@ace.apache.org Received: (qmail 43041 invoked by uid 500); 12 Sep 2014 11:57:11 -0000 Mailing-List: contact commits-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ace.apache.org Delivered-To: mailing list commits@ace.apache.org Received: (qmail 43030 invoked by uid 99); 12 Sep 2014 11:57:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 11:57:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 11:56:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E655823888A6; Fri, 12 Sep 2014 11:56:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@ace.apache.org From: marrs@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140912115647.E655823888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);